rails_generators/cucumber/templates/webrat_steps.rb in aslakhellesoy-cucumber-0.3.90 vs rails_generators/cucumber/templates/webrat_steps.rb in aslakhellesoy-cucumber-0.3.92

- old
+ new

@@ -114,13 +114,14 @@ assert_not_contain text <% end -%> end Then /^I should not see \/([^\/]*)\/$/ do |regexp| + regexp = Regexp.new(regexp) <% if framework == :rspec -%> - response.should_not contain(text) + response.should_not contain(regexp) <% else -%> - assert_not_contain text + assert_not_contain regexp <% end -%> end Then /^the "([^\"]*)" field should contain "([^\"]*)"$/ do |field, value| <% if framework == :rspec -%>