Skip to content

Commit

Permalink
Guard against older versions of faraday response
Browse files Browse the repository at this point in the history
  • Loading branch information
ethanis committed Apr 17, 2023
1 parent 53712f1 commit 1bb0e7b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion spec/response_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -226,7 +226,7 @@
end

it 'merges the reason phrase' do
expect(response.reason_phrase).to eq('Success')
expect(response.reason_phrase).to eq('Success') if response.respond_to?(:reason_phrase)
end
end

Expand Down

0 comments on commit 1bb0e7b

Please sign in to comment.