aboutsummaryrefslogtreecommitdiffstats
path: root/spec/rubyspec/core/string/each_codepoint_spec.rb
diff options
context:
space:
mode:
Diffstat (limited to 'spec/rubyspec/core/string/each_codepoint_spec.rb')
-rw-r--r--spec/rubyspec/core/string/each_codepoint_spec.rb10
1 files changed, 10 insertions, 0 deletions
diff --git a/spec/rubyspec/core/string/each_codepoint_spec.rb b/spec/rubyspec/core/string/each_codepoint_spec.rb
new file mode 100644
index 0000000000..4e910f44b5
--- /dev/null
+++ b/spec/rubyspec/core/string/each_codepoint_spec.rb
@@ -0,0 +1,10 @@
+require File.expand_path('../../../spec_helper', __FILE__)
+require File.expand_path('../shared/codepoints', __FILE__)
+require File.expand_path('../shared/each_codepoint_without_block', __FILE__)
+
+with_feature :encoding do
+ describe "String#each_codepoint" do
+ it_behaves_like(:string_codepoints, :each_codepoint)
+ it_behaves_like(:string_each_codepoint_without_block, :each_codepoint)
+ end
+end