spec/item/save_spec.rb in lhs-26.0.1 vs spec/item/save_spec.rb in lhs-26.1.0
- old
+ new
@@ -110,6 +110,16 @@
item.save!(headers: headers)
expect(request).to have_been_requested
end
end
+
+ context 'chainable' do
+ it 'allows to chain save with options' do
+ stub_request(:put, item.href).with(body: item._raw.merge(name: 'Steve').to_json)
+ item.name = 'Steve'
+ result = item.options(method: :put).save
+
+ expect(result).to eq true
+ end
+ end
end