test/client_test.rb in loquor-0.5.3 vs test/client_test.rb in loquor-0.5.4
- old
+ new
@@ -33,7 +33,17 @@
client = Client.new
deps = {config: client.config}
HttpAction::Post.expects(:post).with(url, payload, deps)
client.post(url, payload)
end
+
+
+ def test_get_calls_gets_with_cache_flag
+ url = "foobar"
+
+ client = Client.new
+ deps = {config: client.config, should_cache: true}
+ HttpAction::Get.expects(:get).with(url, deps)
+ client.get(url, cache=true)
+ end
end
end