spec/mangopay/deposit_spec.rb in mangopay-3.21.0 vs spec/mangopay/deposit_spec.rb in mangopay-3.22.0
- old
+ new
@@ -3,21 +3,21 @@
include_context 'payins'
describe 'CREATE' do
it 'creates a new deposit' do
author = new_natural_user
- card_registration = new_card_registration_completed_for_deposit
+ card_registration = new_card_registration_completed
deposit = create_new_deposit(card_registration['CardId'], author['Id'])
assert_deposit(deposit, card_registration['CardId'], author["Id"])
end
end
describe 'GET' do
it 'get an existing deposit' do
author = new_natural_user
- card_registration = new_card_registration_completed_for_deposit
+ card_registration = new_card_registration_completed
deposit = create_new_deposit(card_registration['CardId'], author['Id'])
assert_deposit(deposit, card_registration['CardId'], author["Id"])
fetched_deposit = MangoPay::Deposit.get(deposit['Id'])
@@ -62,10 +62,9 @@
expect(deposit['PayinsLinked']).not_to be_nil
expect(deposit['CardId']).not_to be_nil
expect(deposit['CardId']).to eq(card_reg_id)
expect(deposit['AuthorId']).to eq(author_id)
expect(deposit['SecureModeReturnURL']).not_to be_nil
- expect(deposit['SecureModeRedirectURL']).not_to be_nil
expect(deposit['PaymentType']).not_to be_nil
expect(deposit['ExecutionType']).not_to be_nil
expect(deposit['StatementDescriptor']).not_to be_nil
expect(deposit['Culture']).not_to be_nil
expect(deposit['BrowserInfo']).not_to be_nil
\ No newline at end of file