Skip to content

Instantly share code, notes, and snippets.

@bitbckt
Created August 27, 2009 21:20
Show Gist options
  • Save bitbckt/176568 to your computer and use it in GitHub Desktop.
Save bitbckt/176568 to your computer and use it in GitHub Desktop.
Factory.factories.each do |name, factory|
Given /^an? #{name} exists with an? (.*) of "([^"]*)"$/ do |attr, value|
Factory(name, attr.gsub(' ', '_') => value)
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment