Sha256: 8c6380fffc683662fc9db62c5f5657d55749793689419fcb1f8a963c13803cef
Contents?: true
Size: 505 Bytes
Versions: 3
Compression:
Stored size: 505 Bytes
Contents
require "spec_helper" describe Tane::Commands::Event do describe ".process" do it "should post data to the local apps /cloudfuji/data with the event" do args = ["Test", "received", "{'foo' => 'bar'}"] event = { 'category' => args.first, 'event' => args[1], 'data' => eval(args[2]) } Tane::Commands::Event.should_receive(:post). with(Tane::Commands::Event.data_url, event) Tane::Commands::Event.process(args) end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
tane-0.0.5 | spec/commands/event_spec.rb |
tane-0.0.4 | spec/commands/event_spec.rb |
tane-0.0.3 | spec/commands/event_spec.rb |