spec/acfs/middleware/json_decoder_spec.rb in acfs-0.10.0 vs spec/acfs/middleware/json_decoder_spec.rb in acfs-0.11.0
- old
+ new
@@ -3,10 +3,10 @@
describe Acfs::Middleware::JsonDecoder do
let(:data) { [{id: 1, name: "Anon"},{id: 2, name:"John", friends: [ 1 ]}] }
let(:body) { data.to_param }
let(:headers) { {} }
let(:request) { Acfs::Request.new "fubar" }
- let(:response) { Acfs::Response.new request, 200, headers, body }
+ let(:response) { Acfs::Response.new request, status: 200, headers: headers, body: body }
let(:decoder) { Acfs::Middleware::JsonDecoder.new lambda { |req| req } }
before do
decoder.call request
end