enju_event 0.0.8 → 0.0.9
Sign up to get free protection for your applications and to get access to all the features.
- data/config/routes.rb +1 -0
- data/lib/enju_event/engine.rb +1 -0
- data/lib/enju_event/version.rb +1 -1
- data/spec/dummy/app/models/country.rb +44 -0
- data/spec/dummy/db/migrate/20081025083323_create_countries.rb +28 -0
- data/spec/dummy/db/schema.rb +15 -0
- data/spec/dummy/db/test.sqlite3 +0 -0
- data/spec/dummy/log/sunspot-solr-test.log +222 -0
- data/spec/dummy/log/test.log +79263 -0
- data/spec/factories/country.rb +8 -0
- data/spec/factories/participate.rb +6 -0
- data/spec/factories/patron.rb +13 -0
- data/spec/fixtures/countries.yml +2059 -0
- data/spec/spec_helper.rb +1 -0
- metadata +62 -46
@@ -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
|