Sha256: 7acd39e659bbb41f9707e0fd869dcb9d47a082c85ae55fa973392224f9701efb
Contents?: true
Size: 802 Bytes
Versions: 25
Compression:
Stored size: 802 Bytes
Contents
# encoding: utf-8 require 'spec_helper' module Punchblock class Event describe DTMF do it 'registers itself' do RayoNode.class_from_registration(:dtmf, 'urn:xmpp:rayo:1').should be == DTMF end describe "from a stanza" do let(:stanza) { "<dtmf xmlns='urn:xmpp:rayo:1' signal='#' />" } subject { RayoNode.import parse_stanza(stanza).root, '9f00061', '1' } it { should be_instance_of DTMF } it_should_behave_like 'event' its(:signal) { should be == '#' } its(:xmlns) { should be == 'urn:xmpp:rayo:1' } end describe "when setting options in initializer" do subject do DTMF.new :signal => '#' end its(:signal) { should be == '#' } end end end end # Punchblock
Version data entries
25 entries across 25 versions & 1 rubygems