add more tests
This commit is contained in:
parent
c0c84b9dbf
commit
38ae24c6b3
6 changed files with 157 additions and 9 deletions
|
|
@ -42,7 +42,7 @@ describe ConferenceRegistrationsController, type: :controller do
|
|||
|
||||
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')
|
||||
expect(assigns(:tickets)).not_to match_array [@purchased_ticket]
|
||||
expect(assigns(:tickets)).not_to exist
|
||||
end
|
||||
end
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue