Skip to content

Commit

Permalink
Include env[:headers] in Stubs::NotFound (#1514)
Browse files Browse the repository at this point in the history
  • Loading branch information
yykamei committed Jun 30, 2023
1 parent 83676df commit 1e3e4e0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/faraday/adapter/test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -275,7 +275,7 @@ def call(env)

unless stub
raise Stubs::NotFound, "no stubbed request for #{env[:method]} " \
"#{env[:url]} #{env[:body]}"
"#{env[:url]} #{env[:body]} #{env[:headers]}"
end

block_arity = stub.block.arity
Expand Down

0 comments on commit 1e3e4e0

Please sign in to comment.