Add tests for Event. Remove redundant function 'def week' from Event.

This commit is contained in:
Stella Rouzi 2016-02-26 15:19:23 +02:00
parent af168f0f55
commit 81c82466f8
3 changed files with 213 additions and 9 deletions

7
spec/factories/votes.rb Normal file
View file

@ -0,0 +1,7 @@
FactoryGirl.define do
factory :vote do
event
user
rating 1
end
end