Sha256: 1f56de7171329c4d258ded4cfbacf4fca0b6cfb1699775db0c0c36965700b150

Contents?: true

Size: 595 Bytes

Versions: 5

Compression:

Stored size: 595 Bytes

Contents

require 'helper'

describe CheckMobi::Resources::Voice::Actions::Wait do
  before do
    CheckMobi.configure do |c|
      c.api_key = ENV['API_KEY']
    end

    @resource = CheckMobi::Resources::Voice::Call.new(
        to: ENV['PHONE_NUMBER'],
        from: ENV['PHONE_NUMBER']
    )

    @wait_action = CheckMobi::Resources::Voice::Actions::Wait.new
  end

  it 'should set default values' do
    @wait_action.action.must_equal 'wait'
    @wait_action.length.must_equal 1
  end

  it 'should not allow setting action name' do
    @wait_action.respond_to?(:action=).must_equal false
  end

end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
check_mobi-1.0.5 test/check_mobi/resources/voice/actions/wait_action_test.rb
check_mobi-1.0.4 test/check_mobi/resources/voice/actions/wait_action_test.rb
check_mobi-1.0.3 test/check_mobi/resources/voice/actions/wait_action_test.rb
check_mobi-1.0.2 test/check_mobi/resources/voice/actions/wait_action_test.rb
check_mobi-1.0.1 test/check_mobi/resources/voice/actions/wait_action_test.rb