Commit 628e16514eafd0e6beec108ce478b20cfb0454de

Authored by Dan Croak
1 parent 76fde36f

another factory girl step improvement

features/step_definitions/factory_girl_steps.rb
... ... @@ -11,6 +11,10 @@ Factory.factories.each do |name, factory|
11 11 Given %{^an? #{name.to_s.humanize.downcase} exists with an? #{column.name.humanize.downcase} of "([^"]*)"$} do |value|
12 12 Factory(name, column.name => value)
13 13 end
  14 +
  15 + Given %{^an? #{name.to_s.humanize.downcase} exists with an? #{column.name.humanize.downcase} of "([^"]*)" and a "([^"]*)" of "([^"]*)"$} do |first_value, second_column, second_value|
  16 + Factory(name, column.name => value, second_column.downcase.to_sym => second_value)
  17 + end
14 18 end
15 19 end
16 20  
... ...