asterisk-ari-client 0.0.7 → 0.0.8

Sign up to get free protection for your applications and to get access to all the features.
@@ -0,0 +1,28 @@
1
+ require_relative '../../test_helper'
2
+
3
+ class TestSound < Minitest::Test
4
+ def setup
5
+ @client = Ari::Client.new(
6
+ url: 'http://192.168.64.9:8088/ari',
7
+ api_key: 'asterisk:asterisk',
8
+ app: 'dialplan'
9
+ )
10
+ end
11
+
12
+ def test_list
13
+ VCR.use_cassette 'sounds_list' do
14
+ sounds = @client.sounds.list
15
+
16
+ assert_kind_of Array, sounds
17
+ assert_equal 501, sounds.length
18
+
19
+ assert_kind_of Ari::Sound, sounds.first
20
+
21
+ assert_equal 'gsm', sounds.first.formats.first.format
22
+ assert_equal 'en', sounds.first.formats.first.language
23
+ assert_equal 'vm-nomore', sounds.first.id
24
+ assert_equal 'No more messages.', sounds.first.text
25
+ end
26
+ end
27
+
28
+ end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: asterisk-ari-client
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.7
4
+ version: 0.0.8
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jan Svoboda
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-07-10 00:00:00.000000000 Z
11
+ date: 2015-08-25 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -176,16 +176,19 @@ files:
176
176
  - lib/ari/models/build_info.rb
177
177
  - lib/ari/models/caller_id.rb
178
178
  - lib/ari/models/channel_caller_id.rb
179
+ - lib/ari/models/channel_connected_line.rb
179
180
  - lib/ari/models/channel_created.rb
180
181
  - lib/ari/models/channel_destroyed.rb
181
182
  - lib/ari/models/channel_dialplan.rb
182
183
  - lib/ari/models/channel_dtmf_received.rb
183
184
  - lib/ari/models/channel_entered_bridge.rb
184
185
  - lib/ari/models/channel_hangup_request.rb
186
+ - lib/ari/models/channel_hold.rb
185
187
  - lib/ari/models/channel_left_bridge.rb
186
188
  - lib/ari/models/channel_state_change.rb
187
189
  - lib/ari/models/channel_talking_finished.rb
188
190
  - lib/ari/models/channel_talking_started.rb
191
+ - lib/ari/models/channel_unhold.rb
189
192
  - lib/ari/models/channel_userevent.rb
190
193
  - lib/ari/models/channel_varset.rb
191
194
  - lib/ari/models/config_info.rb
@@ -238,8 +241,10 @@ files:
238
241
  - test/fixtures/channel_originate_with_channel_vars.json
239
242
  - test/fixtures/channel_originate_with_id.json
240
243
  - test/fixtures/channels_list.json
244
+ - test/fixtures/sounds_list.json
241
245
  - test/lib/asterisk-ari-client/bridge_test.rb
242
246
  - test/lib/asterisk-ari-client/channel_test.rb
247
+ - test/lib/asterisk-ari-client/sound_test.rb
243
248
  - test/test_helper.rb
244
249
  homepage: ''
245
250
  licenses:
@@ -274,6 +279,8 @@ test_files:
274
279
  - test/fixtures/channel_originate_with_channel_vars.json
275
280
  - test/fixtures/channel_originate_with_id.json
276
281
  - test/fixtures/channels_list.json
282
+ - test/fixtures/sounds_list.json
277
283
  - test/lib/asterisk-ari-client/bridge_test.rb
278
284
  - test/lib/asterisk-ari-client/channel_test.rb
285
+ - test/lib/asterisk-ari-client/sound_test.rb
279
286
  - test/test_helper.rb