spec/routemaster/resources/rest_resource_spec.rb in routemaster-drain-2.0.0 vs spec/routemaster/resources/rest_resource_spec.rb in routemaster-drain-2.2.2

- old
+ new

@@ -28,8 +28,22 @@ it 'gets to the given url' do expect(client).to receive(:get).with(url) subject.index end end + + describe '#update' do + it 'updates the given resource' do + expect(client).to receive(:patch).with(url, body: params) + subject.update(1, params) + end + end + + describe '#destroy' do + it 'destroys the given resource' do + expect(client).to receive(:delete).with(url) + subject.destroy(1) + end + end end end end