features/step_definitions/label_steps.rb in furter-0.0.3.1 vs features/step_definitions/label_steps.rb in furter-0.0.3.2

- old
+ new

@@ -1,6 +1,6 @@ -Then /^I know that the label identified by "([^"]*)" is "([^"]*)"$/ do |how, what| - on(DetailPage).send("label_#{how}").should eq(what) +Then /^I know that the label on the "([^"]*)" identified by "([^"]*)" is "([^"]*)"$/ do |page, how, what| + on(page.to_class).send("label_#{how}").should eq(what) end Then /^the label identified by "([^"]*)" should be "([^"]*)"$/ do |how, property| which_method = "#{property}?".to_sym on(DetailPage).send("label_#{how}_view").send(which_method).should be_true \ No newline at end of file