spec/parsi-date/leap_spec.rb in parsi-date-0.2.5 vs spec/parsi-date/leap_spec.rb in parsi-date-0.2.6

- old
+ new

@@ -1,15 +1,15 @@ require File.expand_path('../../spec_helper', __FILE__) describe "Parsi::Date#leap?" do it "returns true if a year is a leap year in the Parsi (Jalali) calendar" do - Parsi::Date.leap?(1387).should be_true - Parsi::Date.leap?(1391).should be_true - Parsi::Date.leap?(1395).should be_true + Parsi::Date.leap?(1387).should be_truthy + Parsi::Date.leap?(1391).should be_truthy + Parsi::Date.leap?(1395).should be_truthy end it "returns false if a year is not a leap year in the Parsi (Jalali) calendar" do - Parsi::Date.leap?(1390).should be_false - Parsi::Date.leap?(1392).should be_false - Parsi::Date.leap?(1400).should be_false + Parsi::Date.leap?(1390).should be_falsey + Parsi::Date.leap?(1392).should be_falsey + Parsi::Date.leap?(1400).should be_falsey end -end \ No newline at end of file +end