summaryrefslogtreecommitdiff
path: root/spec/ruby/core/argf/shared/each_codepoint.rb
diff options
context:
space:
mode:
Diffstat (limited to 'spec/ruby/core/argf/shared/each_codepoint.rb')
-rw-r--r--spec/ruby/core/argf/shared/each_codepoint.rb8
1 files changed, 4 insertions, 4 deletions
diff --git a/spec/ruby/core/argf/shared/each_codepoint.rb b/spec/ruby/core/argf/shared/each_codepoint.rb
index e2a2dfff46..3137306ad5 100644
--- a/spec/ruby/core/argf/shared/each_codepoint.rb
+++ b/spec/ruby/core/argf/shared/each_codepoint.rb
@@ -10,7 +10,7 @@ describe :argf_each_codepoint, shared: true do
it "is a public method" do
argf @filenames do
- @argf.public_methods(false).should include(@method)
+ @argf.public_methods(false).should.include?(@method)
end
end
@@ -22,13 +22,13 @@ describe :argf_each_codepoint, shared: true do
it "returns self when passed a block" do
argf @filenames do
- @argf.send(@method) {}.should equal(@argf)
+ @argf.send(@method) {}.should.equal?(@argf)
end
end
it "returns an Enumerator when passed no block" do
argf @filenames do
- @argf.send(@method).should be_an_instance_of(Enumerator)
+ @argf.send(@method).should.instance_of?(Enumerator)
end
end
@@ -41,7 +41,7 @@ describe :argf_each_codepoint, shared: true do
describe "when no block is given" do
it "returns an Enumerator" do
argf @filenames do
- @argf.send(@method).should be_an_instance_of(Enumerator)
+ @argf.send(@method).should.instance_of?(Enumerator)
end
end