spec/csl/style/date_spec.rb in csl-1.0.0.pre17 vs spec/csl/style/date_spec.rb in csl-1.0.0.pre18
- old
+ new
@@ -4,8 +4,18 @@
describe Style::Date do
end
describe Style::DatePart do
-
+
+ describe '#numeric-leading-zeros?' do
+
+ it { should_not be_numeric_leading_zeros }
+
+ it 'returns true when the form is set accordingly' do
+ subject[:form] = 'numeric-leading-zeros'
+ subject.should be_numeric_leading_zeros
+ end
+ end
+
end
end
\ No newline at end of file