spec/factories.rb in popolo-0.0.2 vs spec/factories.rb in popolo-0.0.3
- old
+ new
@@ -1,14 +1,11 @@
# https://github.com/thoughtbot/factory_girl/blob/master/GETTING_STARTED.md
FactoryGirl.define do
- factory :area, class: Popolo::Area do
- name 'Foo'
- end
-
factory :membership, class: Popolo::Membership do
- person
organization
+ person
+ post
end
factory :organization, class: Popolo::Organization do
name 'ABC, Inc.'
end
@@ -16,11 +13,9 @@
factory :person, class: Popolo::Person do
name 'John Q. Public'
end
factory :post, class: Popolo::Post do
- name 'Marketing Director'
- role 'Director'
- person
+ label 'Marketing Director'
organization
end
end