Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion bambora-client.gemspec
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ Gem::Specification.new do |spec|
spec.required_ruby_version = '>= 2.4.6'

spec.add_dependency 'excon', '< 1.0'
spec.add_dependency 'faraday', '< 1.0'
spec.add_dependency 'faraday', '1.0.1'
spec.add_dependency 'gyoku', '~> 1.0'
spec.add_dependency 'multiparty', '~> 0'

Expand Down
2 changes: 1 addition & 1 deletion spec/bambora/adapters/json_response_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ module Bambora
context 'an invalid response' do
let(:string_response_body) { 'GARTHIM! ATTACK!' }
let(:status) { 500 }
let(:faraday_response) { Faraday::Response.new(body: string_response_body, status: status) }
let(:faraday_response) { Faraday::Response.new(response_body: string_response_body, status: status) }
let(:error_response_hash) { { status: status, body: string_response_body } }
subject { described_class.new(faraday_response).to_h }
it { is_expected.to eq error_response_hash }
Expand Down
2 changes: 1 addition & 1 deletion spec/bambora/adapters/query_string_response_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ module Bambora
context 'an invalid response' do
let(:string_response_body) { 'GARTHIM! ATTACK!' }
let(:status) { 500 }
let(:faraday_response) { Faraday::Response.new(body: string_response_body, status: status) }
let(:faraday_response) { Faraday::Response.new(response_body: string_response_body, status: status) }
let(:error_response_hash) { { status: status, body: string_response_body } }
subject { described_class.new(faraday_response).to_h }
it { is_expected.to eq error_response_hash }
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ module Adapters
context 'when the response is invalid' do
let(:string_response_body) { 'GARTHIM! ATTACK!' }
let(:status) { 500 }
let(:faraday_response) { Faraday::Response.new(body: string_response_body, status: status) }
let(:faraday_response) { Faraday::Response.new(response_body: string_response_body, status: status) }
let(:error_response_hash) { { status: status, body: string_response_body } }
subject { described_class.new(faraday_response).to_h }
it { is_expected.to eq error_response_hash }
Expand Down