test/loquor_test.rb in loquor-0.5.3 vs test/loquor_test.rb in loquor-0.5.4
- old
+ new
@@ -5,9 +5,15 @@
def test_get_calls_get
url = "foo"
Client.any_instance.expects(:get).with(url)
Loquor.get(url)
end
+
+ def test_get_calls_get_passing_on_args
+ url = "foo"
+ Client.any_instance.expects(:get).with(url, cached=true)
+ Loquor.get(url, cached=true)
+ end
def test_put_calls_put
url = "foo"
payload = "bar"
Client.any_instance.expects(:put).with(url, payload)