Sha256: 0bb02855678a92d99608a4c5b5783b1cebab0fcd42876ee7664163e879c9f0bc
Contents?: true
Size: 571 Bytes
Versions: 4
Compression:
Stored size: 571 Bytes
Contents
describe Noam::Message::Heard do describe "#new" do it "creates a new Heard message" do h = Noam::Message::Heard.new("source", "event", "value") h.source.should == "source" h.event.should == "event" h.value.should == "value" end end describe "::from_noam" do it "ceates a new Heard message from the noam event structure" do h = Noam::Message::Heard.from_noam(["event", "source", "event", "value"].to_json) h.source.should == "source" h.event.should == "event" h.value.should == "value" end end end
Version data entries
4 entries across 4 versions & 1 rubygems