Sha256: a30fb5c1a768081d8e33d09939f3be95efb7b9b01f9fe4e60fe287130f6dbefd

Contents?: true

Size: 714 Bytes

Versions: 8

Compression:

Stored size: 714 Bytes

Contents

require 'spec_helper'

RSpec.describe RockRMS::Client::RecurringDonationDetail, type: :model do
  include_context 'resource specs'

  describe '#update_recurring_donation_detail' do
    subject(:resource) do
      client.update_recurring_donation_detail(
        123,
        fund_id: 2,
        amount: 100.0
      )
    end

    it 'returns nothing' do
      expect(client.update_recurring_donation_detail(123, fund_id: 5, amount: 100.0)).to eq(nil)
    end

    it 'passes options' do
      expect(client).to receive(:patch)
        .with(
          'FinancialScheduledTransactionDetails/123',
          'AccountId' => 2,
          'Amount' => 100.0
        ).and_call_original
      resource
    end
  end
end

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
rock_rms-5.7.1 spec/rock_rms/resources/recurring_donation_detail_spec.rb
rock_rms-5.7.0 spec/rock_rms/resources/recurring_donation_detail_spec.rb
rock_rms-5.6.0 spec/rock_rms/resources/recurring_donation_detail_spec.rb
rock_rms-5.5.0 spec/rock_rms/resources/recurring_donation_detail_spec.rb
rock_rms-5.4.0 spec/rock_rms/resources/recurring_donation_detail_spec.rb
rock_rms-5.3.0 spec/rock_rms/resources/recurring_donation_detail_spec.rb
rock_rms-5.2.0 spec/rock_rms/resources/recurring_donation_detail_spec.rb
rock_rms-5.1.0 spec/rock_rms/resources/recurring_donation_detail_spec.rb