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.
9 lines
176 B
Ruby
9 lines
176 B
Ruby
# Read about factories at https://github.com/thoughtbot/factory_girl
|
|
|
|
FactoryGirl.define do
|
|
factory :registration do
|
|
user
|
|
conference
|
|
arrival 3.days.ago
|
|
end
|
|
end
|