spec/unit/evil/client/middleware/stringify_form_spec.rb in evil-client-0.3.1 vs spec/unit/evil/client/middleware/stringify_form_spec.rb in evil-client-0.3.2
- old
+ new
@@ -4,11 +4,11 @@
def update!(env)
@result = env
end
- before { allow(app).to receive(:call) { |env| update! env } }
- subject { stack.call env }
+ before { allow(app).to receive(:call) { |env, *| update! env } }
+ subject { stack.call env, {}, {} }
context "with a non-empty body:" do
let(:env) do
{
body: { foo: :FOO, bar: [:BAR], baz: { qux: :QUX }, qux: nil },