summaryrefslogtreecommitdiff
path: root/spec/ruby/library/date/shared/valid_jd.rb
diff options
context:
space:
mode:
Diffstat (limited to 'spec/ruby/library/date/shared/valid_jd.rb')
-rw-r--r--spec/ruby/library/date/shared/valid_jd.rb14
1 files changed, 7 insertions, 7 deletions
diff --git a/spec/ruby/library/date/shared/valid_jd.rb b/spec/ruby/library/date/shared/valid_jd.rb
index e474dfb450..0c01710208 100644
--- a/spec/ruby/library/date/shared/valid_jd.rb
+++ b/spec/ruby/library/date/shared/valid_jd.rb
@@ -1,20 +1,20 @@
describe :date_valid_jd?, shared: true do
it "returns true if passed a number value" do
- Date.send(@method, -100).should be_true
- Date.send(@method, 100.0).should be_true
- Date.send(@method, 2**100).should be_true
- Date.send(@method, Rational(1,2)).should be_true
+ Date.send(@method, -100).should == true
+ Date.send(@method, 100.0).should == true
+ Date.send(@method, 2**100).should == true
+ Date.send(@method, Rational(1,2)).should == true
end
it "returns false if passed nil" do
- Date.send(@method, nil).should be_false
+ Date.send(@method, nil).should == false
end
it "returns false if passed symbol" do
- Date.send(@method, :number).should be_false
+ Date.send(@method, :number).should == false
end
it "returns false if passed false" do
- Date.send(@method, false).should be_false
+ Date.send(@method, false).should == false
end
end