change rails initialisation.

repair abilities. add ticket purchasing check.
This commit is contained in:
Rishabh Saxena 2016-08-05 20:17:27 +05:30
parent 72ef33cbe6
commit a9ab1186f8
9 changed files with 14 additions and 14 deletions

View file

@ -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) }