summaryrefslogtreecommitdiff
path: root/spec/ruby/library/stringio/gets_spec.rb
diff options
context:
space:
mode:
Diffstat (limited to 'spec/ruby/library/stringio/gets_spec.rb')
-rw-r--r--spec/ruby/library/stringio/gets_spec.rb16
1 files changed, 8 insertions, 8 deletions
diff --git a/spec/ruby/library/stringio/gets_spec.rb b/spec/ruby/library/stringio/gets_spec.rb
index ac876f0b4f..5dc572fba5 100644
--- a/spec/ruby/library/stringio/gets_spec.rb
+++ b/spec/ruby/library/stringio/gets_spec.rb
@@ -10,8 +10,8 @@ describe "StringIO#gets" do
@io = StringIO.new("this>is>an>example")
@io.pos = 36
- @io.gets(">").should be_nil
- @io.gets(">").should be_nil
+ @io.gets(">").should == nil
+ @io.gets(">").should == nil
end
end
@@ -22,8 +22,8 @@ describe "StringIO#gets" do
@io = StringIO.new("this>is>an>example")
@io.pos = 36
- @io.gets(3).should be_nil
- @io.gets(3).should be_nil
+ @io.gets(3).should == nil
+ @io.gets(3).should == nil
end
end
@@ -34,8 +34,8 @@ describe "StringIO#gets" do
@io = StringIO.new("this>is>an>example")
@io.pos = 36
- @io.gets(">", 3).should be_nil
- @io.gets(">", 3).should be_nil
+ @io.gets(">", 3).should == nil
+ @io.gets(">", 3).should == nil
end
end
@@ -46,8 +46,8 @@ describe "StringIO#gets" do
@io = StringIO.new("this>is>an>example")
@io.pos = 36
- @io.gets.should be_nil
- @io.gets.should be_nil
+ @io.gets.should == nil
+ @io.gets.should == nil
end
end