spec/item/save_spec.rb in lhs-6.4.0 vs spec/item/save_spec.rb in lhs-6.5.0
- old
+ new
@@ -54,10 +54,11 @@
it 'keeps header psassed in the options' do
headers = { 'Stats' => 'first-access' }
request = stub_request(:post, item.href)
.with(
body: item._raw.to_json,
- headers: headers)
+ headers: headers
+ )
.to_return(status: 200, body: item._raw.to_json)
item.save!(headers: headers)
expect(request).to have_been_requested
end