spec/punchblock/command/unmute_spec.rb in punchblock-0.5.1 vs spec/punchblock/command/unmute_spec.rb in punchblock-0.6.0
- old
+ new
@@ -4,8 +4,16 @@
module Command
describe Unmute do
it 'registers itself' do
RayoNode.class_from_registration(:unmute, 'urn:xmpp:rayo:1').should == Unmute
end
+
+ describe "from a stanza" do
+ let(:stanza) { '<unmute xmlns="urn:xmpp:rayo:1"/>' }
+
+ subject { RayoNode.import parse_stanza(stanza).root, '9f00061', '1' }
+
+ it { should be_instance_of Unmute }
+ end
end
end
end # Punchblock