spec/punchblock/event/end_spec.rb in punchblock-1.5.3 vs spec/punchblock/event/end_spec.rb in punchblock-1.6.0
- old
+ new
@@ -13,12 +13,12 @@
let :stanza do
<<-MESSAGE
<end xmlns="urn:xmpp:rayo:1">
<timeout />
<!-- Signaling (e.g. SIP) Headers -->
- <header name="x-skill" value="agent" />
- <header name="x-customer-id" value="8877" />
+ <header name="X-skill" value="agent" />
+ <header name="X-customer-id" value="8877" />
</end>
MESSAGE
end
subject { RayoNode.import parse_stanza(stanza).root, '9f00061', '1' }
@@ -37,10 +37,10 @@
End.new :reason => :hangup,
:headers => { :x_skill => "agent", :x_customer_id => "8877" }
end
its(:reason) { should be == :hangup }
- it_should_behave_like 'event_headers'
+ it_should_behave_like 'command_headers'
end
end
end
end # Punchblock