modify tests for changed payment flow

This commit is contained in:
Rishabh Saxena 2016-07-27 19:44:32 +05:30
parent ab262ecb46
commit a5bb038f61
3 changed files with 66 additions and 40 deletions

View file

@ -82,9 +82,8 @@ describe ConferenceRegistrationsController, type: :controller do
get :show, conference_id: conference.short_title
end
it 'assigns price of purchased tickets to total_price and purchased tickets to tickets' do
expect(assigns(:total_price)).to eq Money.new(10000, 'USD')
expect(assigns(:tickets)).to match_array [@purchased_ticket]
it 'does not assign price of purchased tickets to total_price and purchased tickets to tickets without payment' do
expect(assigns(:total_price)).to eq Money.new(0, 'USD')
end
end