spec/nsdate_spec.rb in sugarcube-0.18.6 vs spec/nsdate_spec.rb in sugarcube-0.18.7
- old
+ new
@@ -13,9 +13,13 @@
it "should have an NSDate#string_with_style(style) method that accepts symbols" do
@date.string_with_style(:medium).should == 'Jan 2, 2013'
end
+ it "should have an NSDate#string_with_style(style) method that has default" do
+ @date.string_with_style.should == 'Jan 2, 2013'
+ end
+
it "should have an NSDate#string_with_style(style) method that accepts NSDateStyle constants" do
@date.string_with_style(NSDateFormatterShortStyle).should == '1/2/13'
end
it "should have an NSDate#string_with_format method (1)" do