Skip to content

Commit

Permalink
Update changelog
Browse files Browse the repository at this point in the history
  • Loading branch information
jazziining committed Dec 1, 2023
1 parent e726079 commit cf3d542
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
## 0.7.0 (2023-12-01)

- Update `BatchReportResource#batch_report_body` to allow `sub merchant id` to be received from `Bambora::Client` or `elements`

## 0.6.0 (2023-05-02)

- Updating minimum Ruby version to Ruby 2.7.7
Expand Down
6 changes: 3 additions & 3 deletions spec/bambora/bank/batch_report_resource_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ module Bank
describe BatchReportResource do
subject(:reports) { described_class.new(client: client, api_key: api_key) }
subject(:reports_without_sub_merchant_id) do
described_class.new(client: client_withot_sub_merchant_id, api_key: api_key)
described_class.new(client: client_without_sub_merchant_id, api_key: api_key)
end

let(:api_key) { 'fakekey' }
Expand Down Expand Up @@ -99,7 +99,7 @@ module Bank
)
end

let(:client_withot_sub_merchant_id) do
let(:client_without_sub_merchant_id) do
instance_double(
'Bambora::Rest::XMLClient',
merchant_id: merchant_id,
Expand Down Expand Up @@ -185,7 +185,7 @@ module Bank

it 'sends `post` to the client with the correct data where the sub merchant id comes from elements' do
reports_without_sub_merchant_id.show(request_data_with_rpt_merchant_id)
expect(client_withot_sub_merchant_id).to have_received(:post).with(posted_data_with_rpt_merchant_id)
expect(client_without_sub_merchant_id).to have_received(:post).with(posted_data_with_rpt_merchant_id)
end

it 'returns the expected response' do
Expand Down

0 comments on commit cf3d542

Please sign in to comment.