Skip to content

Instantly share code, notes, and snippets.

@remear
Created November 23, 2010 21:29
Show Gist options
  • Save remear/712576 to your computer and use it in GitHub Desktop.
Save remear/712576 to your computer and use it in GitHub Desktop.
Factory.define :project do |project|
project.name :name
project.customer { |c| c.association(:customer) }
project.project_type { |t| t.association(:project_type) }
end
Given /^there is a project called "([^\"]*)"$/ do |name|
Factory(:project, :name => name)
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment