Sha256: ecf2f9b5373ab7d5091c0c37071633f9d3632d33e5cdf03715307059c70d8e89
Contents?: true
Size: 915 Bytes
Versions: 9
Compression:
Stored size: 915 Bytes
Contents
require 'spec_helper' module Punchblock module Command describe Unjoin do it 'registers itself' do RayoNode.class_from_registration(:unjoin, 'urn:xmpp:rayo:1').should == Unjoin end describe "when setting options in initializer" do subject { Unjoin.new :other_call_id => 'abc123', :mixer_name => 'blah' } its(:other_call_id) { should == 'abc123' } its(:mixer_name) { should == 'blah' } end describe "from a stanza" do let :stanza do <<-MESSAGE <unjoin xmlns="urn:xmpp:rayo:1" call-id="abc123" mixer-name="blah" /> MESSAGE end subject { RayoNode.import parse_stanza(stanza).root, '9f00061', '1' } it { should be_instance_of Unjoin } its(:other_call_id) { should == 'abc123' } its(:mixer_name) { should == 'blah' } end end end end # Punchblock
Version data entries
9 entries across 9 versions & 1 rubygems