updated rails to 4.2.4

This commit is contained in:
raluka 2015-09-17 12:12:51 +02:00
parent 37697517df
commit 42e8bb11ea
55 changed files with 766 additions and 365 deletions

View file

@ -0,0 +1,9 @@
# Read about factories at https://github.com/thoughtbot/factory_girl
FactoryGirl.define do
factory :comment do
body 'Most interresting comment ever, created by a girl.'
user
association :commentable, factory: :event
end
end

View file

@ -47,6 +47,7 @@ FactoryGirl.define do
event.difficulty_level = build(:difficulty_level, conference: event.conference)
event.track = build(:track, conference: event.conference)
event.room = build(:room, conference: event.conference)
event.comment_threads << build(:comment, commentable: event)
end
end