spec/parsi-date/leap_spec.rb in parsi-date-0.4.0 vs spec/parsi-date/leap_spec.rb in parsi-date-0.5.0
- old
+ new
@@ -1,15 +1,15 @@
describe "Parsi::Date#leap?" do
it "returns true if a year is a leap year in the Parsi (Jalali) calendar" do
- expect Parsi::Date.leap?(1387) == true
- expect Parsi::Date.leap?(1391) == true
- expect Parsi::Date.leap?(1395) == true
- expect Parsi::Date.leap?(1403) == true
+ expect(Parsi::Date.leap?(1387)).to be true
+ expect(Parsi::Date.leap?(1391)).to be true
+ expect(Parsi::Date.leap?(1395)).to be true
+ expect(Parsi::Date.leap?(1403)).to be true
end
it "returns false if a year is not a leap year in the Parsi (Jalali) calendar" do
- expect Parsi::Date.leap?(1390) == false
- expect Parsi::Date.leap?(1392) == false
- expect Parsi::Date.leap?(1400) == false
- expect Parsi::Date.leap?(1404) == false
+ expect(Parsi::Date.leap?(1390)).to be false
+ expect(Parsi::Date.leap?(1392)).to be false
+ expect(Parsi::Date.leap?(1400)).to be false
+ expect(Parsi::Date.leap?(1404)).to be false
end
end