spec/punchblock/event/end_spec.rb in punchblock-0.5.1 vs spec/punchblock/event/end_spec.rb in punchblock-0.6.0
- old
+ new
@@ -23,8 +23,16 @@
it_should_behave_like 'event'
its(:reason) { should == :timeout }
its(:xmlns) { should == 'urn:xmpp:rayo:1' }
end
+
+ describe "when setting options in initializer" do
+ subject do
+ End.new :reason => :hangup
+ end
+
+ its(:reason) { should == :hangup }
+ end
end
end
end # Punchblock