spec: JRuby-proof a test about error messages

This commit is contained in:
Olle Jonsson 2019-04-11 09:28:58 +02:00
parent 284d920cf3
commit 52e30bf8e8

View File

@ -189,7 +189,7 @@ RSpec.describe Faraday::RackBuilder do
it 'raises an error while making a request' do
expect { conn.get('/') }.to raise_error(RuntimeError) do |err|
expect(err.message).to eq('missing dependency for Broken: cannot load such file -- zomg/i_dont/exist')
expect(err.message).to match(%r{missing dependency for Broken: .+ -- zomg/i_dont/exist})
end
end
end