enju_event 0.0.8 → 0.0.9

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,8 @@
1
+ FactoryGirl.define do
2
+ factory :country do |f|
3
+ f.sequence(:name){|n| "country_#{n}"}
4
+ f.sequence(:alpha_2){|n| "alpha_2_#{n}"}
5
+ f.sequence(:alpha_3){|n| "alpha_3_#{n}"}
6
+ f.sequence(:numeric_3){|n| "numeric_3_#{n}"}
7
+ end
8
+ end
@@ -0,0 +1,6 @@
1
+ FactoryGirl.define do
2
+ factory :participate do |f|
3
+ f.event_id{FactoryGirl.create(:event).id}
4
+ f.patron_id{FactoryGirl.create(:patron).id}
5
+ end
6
+ end
@@ -0,0 +1,13 @@
1
+ FactoryGirl.define do
2
+ factory :patron do |f|
3
+ f.sequence(:full_name){|n| "full_name_#{n}"}
4
+ f.patron_type_id{PatronType.find_by_name('Person').id}
5
+ f.country_id{Country.first.id}
6
+ f.language_id{Language.first.id}
7
+ end
8
+ end
9
+
10
+ FactoryGirl.define do
11
+ factory :invalid_patron, :class => Patron do |f|
12
+ end
13
+ end