features/step_definitions/edtf_steps.rb in edtf-0.0.1 vs features/step_definitions/edtf_steps.rb in edtf-0.0.2
- old
+ new
@@ -41,11 +41,11 @@
Then /^the seconds should be "([^"]*)"$/ do |seconds|
@edtf.sec.should == seconds.to_i
end
-Then /^the duration should range from "([^"]*)" to "([^"]*)"$/ do |*expected|
- [@edtf.begin.year.to_s, @edtf.end.year.to_s].should == expected
+Then /^the duration should range from "([^"]*)" to "([^"]*)"$/ do |from,to|
+ [@edtf.begin.year.to_s, @edtf.end.year.to_s].should == [from,to]
end
Then /^the interval should start at "([^"]*)"$/ do |date|
@edtf.begin.to_s.should == date
end