change rails initialisation.
repair abilities. add ticket purchasing check.
This commit is contained in:
parent
72ef33cbe6
commit
a9ab1186f8
9 changed files with 14 additions and 14 deletions
|
|
@ -105,6 +105,9 @@ describe 'User' do
|
|||
it{ should be_able_to(:index, Ticket) }
|
||||
it{ should be_able_to(:manage, TicketPurchase.new(user_id: user.id)) }
|
||||
|
||||
it{ should be_able_to(:new, Payment.new(user_id: user.id)) }
|
||||
it{ should be_able_to(:create, Payment.new(user_id: user.id)) }
|
||||
|
||||
it{ should be_able_to(:create, Subscription.new(user_id: user.id)) }
|
||||
it{ should be_able_to(:destroy, subscription) }
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue