spec/synchrony/synchrony_spec.rb in keen-0.4.3 vs spec/synchrony/synchrony_spec.rb in keen-0.4.4
- old
+ new
@@ -17,10 +17,10 @@
describe "success" do
it "should post the event data" do
stub_api(api_url(collection), 201, api_success)
EM.synchrony {
@client.publish_async(collection, event_properties)
- expect_post(api_url(collection), event_properties, api_key)
+ expect_post(api_url(collection), event_properties, api_key, "async")
EM.stop
}
end
it "should recieve the right response 'synchronously'" do