Skip to content

Commit

Permalink
Added new step
Browse files Browse the repository at this point in the history
  • Loading branch information
baphled committed Jul 23, 2010
1 parent 1a69ae6 commit 980c73b
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion features/step_definitions/general_steps.rb
@@ -1,7 +1,11 @@
Given /^the "([^\"]*)" has ([^\"]*) "([^\"]*)"$/ do |model, amount, assoc|
Given /^the "([^\"]*)" has (\d+) "([^\"]*)"$/ do |model, amount, assoc|
build_associations_by_amount amount, model, assoc
end

Given /^the ([^\"]*) has (\d+) ([^\"]*)s$/ do |model, amount, assoc|
Given %{the "#{model}" has #{amount} "#{assoc}"}
end

Then /^a flash message '(.*)' should be displayed$/ do |message|
flash[:notice].should contain "#{message}"
end
Expand Down

0 comments on commit 980c73b

Please sign in to comment.