Sha256: d1782cec77668e014950b3953312520574521bae4ec52d981e10ea2b342c963c

Contents?: true

Size: 566 Bytes

Versions: 5

Compression:

Stored size: 566 Bytes

Contents

require 'helper'

describe CheckMobi::Resources::Voice::Actions::Play 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']
    )

    @play_action = CheckMobi::Resources::Voice::Actions::Play.new
  end

  it 'should set action name implicitly' do
    @play_action.action.must_equal 'play'
  end

  it 'should not allow setting action name' do
    @play_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/play_action_test.rb
check_mobi-1.0.4 test/check_mobi/resources/voice/actions/play_action_test.rb
check_mobi-1.0.3 test/check_mobi/resources/voice/actions/play_action_test.rb
check_mobi-1.0.2 test/check_mobi/resources/voice/actions/play_action_test.rb
check_mobi-1.0.1 test/check_mobi/resources/voice/actions/play_action_test.rb