Sha256: 8924ec0d7132aceb442ec2adbf3826d681415c927781499329ae37f2fbe0c602

Contents?: true

Size: 429 Bytes

Versions: 4

Compression:

Stored size: 429 Bytes

Contents

describe Noam::Message::Playable do
  describe "#new" do
    it "can be built" do
      Noam::Message::Playable.new(
        :host, :event, :value
      ).class.should == Noam::Message::Playable
    end
  end

  describe "#noam_encode" do
    it "encodes the Playable" do
      Noam::Message::Playable.new(
        "host", "event", "value"
      ).noam_encode.should == '000032["event","host","event","value"]'
    end
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
noam_lemma-0.2.1.3 spec/noam_lemma/message/playable_spec.rb
noam_lemma-0.2.1.2 spec/noam_lemma/message/playable_spec.rb
noam_lemma-0.2.1.1 spec/noam_lemma/message/playable_spec.rb
noam_lemma-0.2.1 spec/noam_lemma/message/playable_spec.rb