Skip to content

Instantly share code, notes, and snippets.

@daviddavis
Last active December 13, 2015 22:59
Show Gist options
  • Select an option

  • Save daviddavis/4988618 to your computer and use it in GitHub Desktop.

Select an option

Save daviddavis/4988618 to your computer and use it in GitHub Desktop.
FactoryGirl.define do
factory :content_view_environment do
sequence(:name) { |n| "Database#{n}" }
sequence(:cp_id) { |n| "#{n}-123"}
content_view
end
end
FactoryGirl.define do
factory :content_view_environment do
sequence(:name) { |n| "Database#{n}" }
sequence(:cp_id) { |n| "#{n}-123"}
association content_view
end
end
FactoryGirl.define do
factory :content_view_environment do
sequence(:name) { |n| "Database#{n}" }
sequence(:cp_id) { |n| "#{n}-123"}
association content_view, :factory => :content_view
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment