Sha256: ecf26bd07e9c7d63f23083c48251907337001fdaf1a0f01777db7248d899888d
Contents?: true
Size: 922 Bytes
Versions: 4
Compression:
Stored size: 922 Bytes
Contents
require 'spec_helper' describe Miu::Messages::Text do describe '#initialize' do context 'no args' do before do @msg = Miu::Messages::Text.new end subject { @msg } its(:id) { should be_instance_of String } its(:time) { should be_instance_of Fixnum } its(:network) { should be_instance_of Miu::Resources::Network } its(:type) { should eq 'text' } end context 'with args' do before do @msg = Miu::Messages::Text.new({ :id => 123, :time => 123, :network => {:name => 'test'}, :content => {}, }) end subject { @msg } its(:id) { should eq 123 } its(:time) { should eq 123 } its(:network) { should be_instance_of Miu::Resources::Network } its(:type) { should eq 'text' } its(:content) { should be_instance_of Miu::Resources::TextContent } end end end
Version data entries
4 entries across 4 versions & 1 rubygems
Version | Path |
---|---|
miu-0.2.3 | spec/miu/messages/text_spec.rb |
miu-0.2.2 | spec/miu/messages/text_spec.rb |
miu-0.2.1 | spec/miu/messages/text_spec.rb |
miu-0.2.0 | spec/miu/messages/text_spec.rb |