summaryrefslogtreecommitdiff
path: root/spec/ruby/library/tempfile/shared/length.rb
diff options
context:
space:
mode:
Diffstat (limited to 'spec/ruby/library/tempfile/shared/length.rb')
-rw-r--r--spec/ruby/library/tempfile/shared/length.rb6
1 files changed, 3 insertions, 3 deletions
diff --git a/spec/ruby/library/tempfile/shared/length.rb b/spec/ruby/library/tempfile/shared/length.rb
index 4d18d1f385..1a89ff7b4d 100644
--- a/spec/ruby/library/tempfile/shared/length.rb
+++ b/spec/ruby/library/tempfile/shared/length.rb
@@ -8,14 +8,14 @@ describe :tempfile_length, shared: true do
end
it "returns the size of self" do
- @tempfile.send(@method).should eql(0)
+ @tempfile.send(@method).should.eql?(0)
@tempfile.print("Test!")
- @tempfile.send(@method).should eql(5)
+ @tempfile.send(@method).should.eql?(5)
end
it "returns the size of self even if self is closed" do
@tempfile.print("Test!")
@tempfile.close
- @tempfile.send(@method).should eql(5)
+ @tempfile.send(@method).should.eql?(5)
end
end