test/client_test.rb in loquor-0.3.0 vs test/client_test.rb in loquor-0.4.0
- old
+ new
@@ -14,9 +14,19 @@
deps = {config: client.config}
HttpAction::Get.expects(:get).with(url, deps)
client.get(url)
end
+ def test_put_calls_puts
+ url = "foobar"
+ payload = {foo: 'bar'}
+
+ client = Client.new
+ deps = {config: client.config}
+ HttpAction::Put.expects(:put).with(url, payload, deps)
+ client.put(url, payload)
+ end
+
def test_post_calls_posts
url = "foobar"
payload = {x: true}
client = Client.new