forked from bofh/fetsite
a lot of new models ...
Fotogallary, gremien, fetprofil,
This commit is contained in:
13
spec/factories/fetprofiles.rb
Normal file
13
spec/factories/fetprofiles.rb
Normal file
@@ -0,0 +1,13 @@
|
||||
# Read about factories at https://github.com/thoughtbot/factory_girl
|
||||
|
||||
FactoryGirl.define do
|
||||
factory :fetprofile do
|
||||
vorname "MyString"
|
||||
nachname "MyString"
|
||||
short "MyString"
|
||||
fetmailalias "MyString"
|
||||
desc "MyText"
|
||||
picture "MyString"
|
||||
active false
|
||||
end
|
||||
end
|
||||
10
spec/factories/fotos.rb
Normal file
10
spec/factories/fotos.rb
Normal file
@@ -0,0 +1,10 @@
|
||||
# Read about factories at https://github.com/thoughtbot/factory_girl
|
||||
|
||||
FactoryGirl.define do
|
||||
factory :foto do
|
||||
title "MyString"
|
||||
desc "MyText"
|
||||
gallery_id 1
|
||||
datei "MyString"
|
||||
end
|
||||
end
|
||||
9
spec/factories/galleries.rb
Normal file
9
spec/factories/galleries.rb
Normal file
@@ -0,0 +1,9 @@
|
||||
# Read about factories at https://github.com/thoughtbot/factory_girl
|
||||
|
||||
FactoryGirl.define do
|
||||
factory :gallery do
|
||||
name "MyString"
|
||||
desc "MyText"
|
||||
datum "2013-08-19"
|
||||
end
|
||||
end
|
||||
9
spec/factories/gremien.rb
Normal file
9
spec/factories/gremien.rb
Normal file
@@ -0,0 +1,9 @@
|
||||
# Read about factories at https://github.com/thoughtbot/factory_girl
|
||||
|
||||
FactoryGirl.define do
|
||||
factory :gremium do
|
||||
name "MyString"
|
||||
desc "MyText"
|
||||
typ "MyString"
|
||||
end
|
||||
end
|
||||
11
spec/factories/memberships.rb
Normal file
11
spec/factories/memberships.rb
Normal file
@@ -0,0 +1,11 @@
|
||||
# Read about factories at https://github.com/thoughtbot/factory_girl
|
||||
|
||||
FactoryGirl.define do
|
||||
factory :membership do
|
||||
fetprofile_id "MyString"
|
||||
gremium_id "MyString"
|
||||
start "2013-08-19"
|
||||
stop "2013-08-19"
|
||||
typ "MyString"
|
||||
end
|
||||
end
|
||||
Reference in New Issue
Block a user