features/step_definitions/edtf_steps.rb in edtf-0.0.5 vs features/step_definitions/edtf_steps.rb in edtf-0.0.6
- old
+ new
@@ -91,8 +91,21 @@
Then /^the date should be approximate\? "([^"]*)"$/ do |arg1|
@date.approximate?.should == !!(arg1 =~ /y(es)?/i)
end
+Then /^the year should be approximate\? "([^"]*)"$/ do |arg1|
+ @date.approximate?(:year).should == !!(arg1 =~ /y(es)?/i)
+end
+
+Then /^the month should be approximate\? "([^"]*)"$/ do |arg1|
+ @date.approximate?(:month).should == !!(arg1 =~ /y(es)?/i)
+end
+
+Then /^the day should be approximate\? "([^"]*)"$/ do |arg1|
+ @date.approximate?(:day).should == !!(arg1 =~ /y(es)?/i)
+end
+
+
Then /^the unspecified string code be "([^"]*)"$/ do |arg1|
@date.unspecified.to_s.should == arg1
end