It would be nice to expose the currently registered stubbed instances via puffing billy.
This will allow for developers to learn which stubs were not correctly called, or are dead:
Billy.configure do |c|
c.record_stub_requests = true
end
config.after(:example, type: :feature) do
unused_stubs = proxy.stubs.select { |stub| stub.requests.empty? }
expect(unused_proxy_stubs).to be_empty, "expected all stubs to be used, however no requests were received for #{unused_proxy_stubs}"
end
It would be nice to expose the currently registered stubbed instances via puffing billy. This will allow for developers to learn which stubs were not correctly called, or are dead: