Tests for ConferenceRegistrations controller

Authorization needs to be done first or else it will give
CanCan::AuthorizationNotPerformed error for some of branches.
Removed if condition is dead code.
Small fix in flash message of destroy and its feature test.
This commit is contained in:
Aditya Prakash 2016-02-29 00:21:24 +05:30
parent 13a6586f81
commit 5bff60ec7d
4 changed files with 314 additions and 18 deletions

View file

@ -4,5 +4,6 @@ FactoryGirl.define do
factory :registration do
user
conference
arrival 3.days.ago
end
end