spec/punchblock/event/end_spec.rb in punchblock-0.9.2 vs spec/punchblock/event/end_spec.rb in punchblock-0.10.0
- old
+ new
@@ -1,12 +1,14 @@
+# encoding: utf-8
+
require 'spec_helper'
module Punchblock
class Event
describe End do
it 'registers itself' do
- RayoNode.class_from_registration(:end, 'urn:xmpp:rayo:1').should == End
+ RayoNode.class_from_registration(:end, 'urn:xmpp:rayo:1').should be == End
end
describe "from a stanza" do
let :stanza do
<<-MESSAGE
@@ -24,20 +26,20 @@
it { should be_instance_of End }
it_should_behave_like 'event'
it_should_behave_like 'event_headers'
- its(:reason) { should == :timeout }
- its(:xmlns) { should == 'urn:xmpp:rayo:1' }
+ its(:reason) { should be == :timeout }
+ its(:xmlns) { should be == 'urn:xmpp:rayo:1' }
end
describe "when setting options in initializer" do
subject do
End.new :reason => :hangup,
:headers => { :x_skill => "agent", :x_customer_id => "8877" }
end
- its(:reason) { should == :hangup }
+ its(:reason) { should be == :hangup }
it_should_behave_like 'event_headers'
end
end
end
end # Punchblock