created comments with FactoryGirl

This commit is contained in:
raluka 2015-08-25 14:41:09 +02:00
parent b6d726d40e
commit eab2894fad
5 changed files with 17 additions and 3 deletions

View file

@ -141,6 +141,7 @@ describe 'User' do
it{ should_not be_able_to(:manage, other_event.difficulty_level) }
it{ should be_able_to(:manage, event.commercials.first) }
it{ should_not be_able_to(:manage, other_event.commercials.first) }
it{ should be_able_to([:read, :create], event.comment_threads.first) }
end
context 'when user has the role cfp' do