Sha256: 5e3c8ab7c477fabe121f7efb6be3afa912a3452ecc162f70be1f8ecc1c2cd5c3

Contents?: true

Size: 570 Bytes

Versions: 3

Compression:

Stored size: 570 Bytes

Contents

# encoding: utf-8

require 'spec_helper'

describe Adhearsion::Event::InputTimersStarted do
  it 'registers itself' do
    expect(Adhearsion::Rayo::RayoNode.class_from_registration(:'input-timers-started', 'urn:xmpp:rayo:prompt:1')).to eq(described_class)
  end

  describe "from a stanza" do
    let(:stanza) { "<input-timers-started xmlns='urn:xmpp:rayo:prompt:1' />" }

    subject { Adhearsion::Rayo::RayoNode.from_xml parse_stanza(stanza).root, '9f00061', '1' }

    it { is_expected.to be_instance_of described_class }

    it_should_behave_like 'event'
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
adhearsion-3.0.0.rc1 spec/adhearsion/event/input_timers_started_spec.rb
adhearsion-3.0.0.beta2 spec/adhearsion/event/input_timers_started_spec.rb
adhearsion-3.0.0.beta1 spec/adhearsion/event/input_timers_started_spec.rb