Created
November 23, 2010 21:29
-
-
Save remear/712576 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Factory.define :project do |project| | |
project.name :name | |
project.customer { |c| c.association(:customer) } | |
project.project_type { |t| t.association(:project_type) } | |
end |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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