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.rb6
1 files changed, 3 insertions, 3 deletions
diff --git a/spec/ruby/core/argf/binmode_spec.rb b/spec/ruby/core/argf/binmode_spec.rb
index c2dd578d95..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
@@ -22,7 +22,7 @@ describe "ARGF.binmode" do
end
end
- it "puts alls subsequent stream reading through ARGF into binmode" do
+ it "puts all subsequent streams reading through ARGF into binmode" do
argf [@bin_file, @bin_file] do
@argf.binmode
@argf.gets.should == "test\r\n"
@@ -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