summaryrefslogtreecommitdiff
path: root/spec/ruby/core/argf/binmode_spec.rb
diff options
context:
space:
mode:
Diffstat (limited to 'spec/ruby/core/argf/binmode_spec.rb')
-rw-r--r--spec/ruby/core/argf/binmode_spec.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/spec/ruby/core/argf/binmode_spec.rb b/spec/ruby/core/argf/binmode_spec.rb
index bdcc6aa30a..5288e3199d 100644
--- a/spec/ruby/core/argf/binmode_spec.rb
+++ b/spec/ruby/core/argf/binmode_spec.rb
@@ -9,7 +9,7 @@ describe "ARGF.binmode" do
it "returns self" do
argf [@bin_file] do
- @argf.binmode.should equal @argf
+ @argf.binmode.should.equal? @argf
end
end
@@ -34,7 +34,7 @@ describe "ARGF.binmode" do
it "sets the file's encoding to BINARY" do
argf [@bin_file, @file1] do
@argf.binmode
- @argf.binmode?.should == true
+ @argf.should.binmode?
@argf.gets.encoding.should == Encoding::BINARY
@argf.skip
@argf.read.encoding.should == Encoding::BINARY