Merge pull request #1701 from rahul2240/amount
Add paid option in physical ticket#index
This commit is contained in:
commit
1d07125e7d
12 changed files with 46 additions and 28 deletions
|
|
@ -252,7 +252,7 @@ describe ConferenceRegistrationsController, type: :controller do
|
|||
end
|
||||
|
||||
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(:total_price)).to eq 0
|
||||
end
|
||||
end
|
||||
|
||||
|
|
@ -262,7 +262,7 @@ describe ConferenceRegistrationsController, type: :controller do
|
|||
end
|
||||
|
||||
it 'assigns 0 dollars to total_price and empty array to tickets variables' do
|
||||
expect(assigns(:total_price)).to eq Money.new(0, 'USD')
|
||||
expect(assigns(:total_price)).to eq 0
|
||||
expect(assigns(:tickets)).to match_array []
|
||||
end
|
||||
end
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue