test/resource_test.rb in loquor-1.5.0 vs test/resource_test.rb in loquor-1.6.0
- old
+ new
@@ -64,9 +64,15 @@
payload = {bar: 'foo'}
Loquor.expects(:put).with("/foobar/#{id}", payload: payload)
Foobar.update(id, payload)
end
+ def test_destroy_should_delete
+ id = 8
+ Loquor.expects(:delete).with("/foobar/#{id}")
+ Foobar.destroy(id)
+ end
+
def test_can_read_path
assert_equal "/foobar", Foobar.path
end
def test_cache_flag_false_by_default