freeclimb 1.0.0 → 2.0.2

Sign up to get free protection for your applications and to get access to all the features.
Files changed (204) hide show
  1. checksums.yaml +4 -4
  2. data/Gemfile.lock +1 -1
  3. data/README.md +69 -50
  4. data/docs/AccountRequest.md +3 -5
  5. data/docs/AccountResult.md +12 -12
  6. data/docs/AccountResultAllOf.md +8 -8
  7. data/docs/AddToConference.md +35 -0
  8. data/docs/AddToConferenceAllOf.md +35 -0
  9. data/docs/ApplicationList.md +9 -9
  10. data/docs/ApplicationListAllOf.md +2 -2
  11. data/docs/ApplicationRequest.md +8 -10
  12. data/docs/ApplicationResult.md +14 -14
  13. data/docs/ApplicationResultAllOf.md +10 -10
  14. data/docs/AvailableNumber.md +7 -7
  15. data/docs/AvailableNumberList.md +9 -9
  16. data/docs/AvailableNumberListAllOf.md +2 -2
  17. data/docs/BuyIncomingNumberRequest.md +4 -6
  18. data/docs/CallList.md +9 -9
  19. data/docs/CallListAllOf.md +2 -2
  20. data/docs/CallResult.md +20 -20
  21. data/docs/CallResultAllOf.md +16 -16
  22. data/docs/ConferenceList.md +9 -9
  23. data/docs/ConferenceListAllOf.md +2 -2
  24. data/docs/ConferenceParticipantList.md +9 -9
  25. data/docs/ConferenceParticipantListAllOf.md +2 -2
  26. data/docs/ConferenceParticipantResult.md +11 -11
  27. data/docs/ConferenceParticipantResultAllOf.md +7 -7
  28. data/docs/ConferenceResult.md +15 -15
  29. data/docs/ConferenceResultAllOf.md +11 -11
  30. data/docs/CreateConference.md +27 -0
  31. data/docs/CreateConferenceAllOf.md +27 -0
  32. data/docs/CreateConferenceRequest.md +6 -8
  33. data/docs/DefaultApi.md +70 -86
  34. data/docs/Dequeue.md +16 -0
  35. data/docs/Enqueue.md +23 -0
  36. data/docs/EnqueueAllOf.md +23 -0
  37. data/docs/FilterLogsRequest.md +2 -4
  38. data/docs/GetDigits.md +33 -0
  39. data/docs/GetDigitsAllOf.md +33 -0
  40. data/docs/GetSpeech.md +41 -0
  41. data/docs/GetSpeechAllOf.md +41 -0
  42. data/docs/IncomingNumberList.md +9 -9
  43. data/docs/IncomingNumberListAllOf.md +2 -2
  44. data/docs/IncomingNumberRequest.md +3 -5
  45. data/docs/IncomingNumberResult.md +14 -14
  46. data/docs/IncomingNumberResultAllOf.md +10 -10
  47. data/docs/LogList.md +9 -9
  48. data/docs/LogListAllOf.md +2 -2
  49. data/docs/LogResult.md +8 -8
  50. data/docs/MakeCallRequest.md +11 -11
  51. data/docs/MessageRequest.md +10 -12
  52. data/docs/MessageRequestAllOf.md +6 -8
  53. data/docs/MessageResult.md +13 -13
  54. data/docs/MessageResultAllOf.md +9 -9
  55. data/docs/MessagesList.md +9 -9
  56. data/docs/MessagesListAllOf.md +2 -2
  57. data/docs/MutableResourceModel.md +5 -5
  58. data/docs/OutDial.md +35 -0
  59. data/docs/OutDialAllOf.md +35 -0
  60. data/docs/PaginationModel.md +8 -8
  61. data/docs/Pause.md +17 -0
  62. data/docs/PauseAllOf.md +17 -0
  63. data/docs/PerclCommand.md +17 -0
  64. data/docs/PerclScript.md +17 -0
  65. data/docs/Play.md +23 -0
  66. data/docs/PlayAllOf.md +23 -0
  67. data/docs/PlayEarlyMedia.md +17 -0
  68. data/docs/PlayEarlyMediaAllOf.md +17 -0
  69. data/docs/QueueList.md +9 -9
  70. data/docs/QueueListAllOf.md +2 -2
  71. data/docs/QueueMember.md +6 -6
  72. data/docs/QueueMemberList.md +9 -9
  73. data/docs/QueueMemberListAllOf.md +2 -2
  74. data/docs/QueueRequest.md +3 -5
  75. data/docs/QueueResult.md +12 -12
  76. data/docs/QueueResultAllOf.md +8 -8
  77. data/docs/RecordUtterance.md +27 -0
  78. data/docs/RecordUtteranceAllOf.md +27 -0
  79. data/docs/RecordingList.md +9 -9
  80. data/docs/RecordingListAllOf.md +2 -2
  81. data/docs/RecordingResult.md +10 -10
  82. data/docs/RecordingResultAllOf.md +6 -6
  83. data/docs/Redirect.md +17 -0
  84. data/docs/RedirectAllOf.md +17 -0
  85. data/docs/RemoveFromConference.md +17 -0
  86. data/docs/RemoveFromConferenceAllOf.md +17 -0
  87. data/docs/Say.md +25 -0
  88. data/docs/SayAllOf.md +25 -0
  89. data/docs/SendDigits.md +21 -0
  90. data/docs/SendDigitsAllOf.md +21 -0
  91. data/docs/SetListen.md +19 -0
  92. data/docs/SetListenAllOf.md +19 -0
  93. data/docs/SetTalk.md +19 -0
  94. data/docs/SetTalkAllOf.md +19 -0
  95. data/docs/Sms.md +23 -0
  96. data/docs/SmsAllOf.md +23 -0
  97. data/docs/StartRecordCall.md +16 -0
  98. data/docs/TerminateConference.md +17 -0
  99. data/docs/TerminateConferenceAllOf.md +17 -0
  100. data/docs/UpdateCallRequest.md +2 -4
  101. data/docs/UpdateConferenceParticipantRequest.md +3 -5
  102. data/docs/UpdateConferenceRequest.md +4 -6
  103. data/lib/freeclimb.rb +69 -2
  104. data/lib/freeclimb/api/default_api.rb +96 -88
  105. data/lib/freeclimb/api_client.rb +1 -1
  106. data/lib/freeclimb/models/account_request.rb +4 -14
  107. data/lib/freeclimb/models/add_to_conference.rb +320 -0
  108. data/lib/freeclimb/models/add_to_conference_all_of.rb +307 -0
  109. data/lib/freeclimb/models/application_request.rb +4 -14
  110. data/lib/freeclimb/models/buy_incoming_number_request.rb +4 -14
  111. data/lib/freeclimb/models/create_conference.rb +275 -0
  112. data/lib/freeclimb/models/create_conference_all_of.rb +262 -0
  113. data/lib/freeclimb/models/create_conference_request.rb +4 -14
  114. data/lib/freeclimb/models/dequeue.rb +209 -0
  115. data/lib/freeclimb/models/enqueue.rb +265 -0
  116. data/lib/freeclimb/models/enqueue_all_of.rb +252 -0
  117. data/lib/freeclimb/models/filter_logs_request.rb +4 -14
  118. data/lib/freeclimb/models/get_digits.rb +307 -0
  119. data/lib/freeclimb/models/get_digits_all_of.rb +294 -0
  120. data/lib/freeclimb/models/get_speech.rb +352 -0
  121. data/lib/freeclimb/models/get_speech_all_of.rb +339 -0
  122. data/lib/freeclimb/models/incoming_number_request.rb +4 -14
  123. data/lib/freeclimb/models/make_call_request.rb +14 -14
  124. data/lib/freeclimb/models/message_request.rb +1 -11
  125. data/lib/freeclimb/models/message_request_all_of.rb +1 -11
  126. data/lib/freeclimb/models/out_dial.rb +330 -0
  127. data/lib/freeclimb/models/out_dial_all_of.rb +317 -0
  128. data/lib/freeclimb/models/pause.rb +225 -0
  129. data/lib/freeclimb/models/{dequeue_member_request.rb → pause_all_of.rb} +16 -11
  130. data/lib/freeclimb/models/percl_command.rb +211 -0
  131. data/lib/freeclimb/models/percl_script.rb +210 -0
  132. data/lib/freeclimb/models/play.rb +255 -0
  133. data/lib/freeclimb/models/play_all_of.rb +242 -0
  134. data/lib/freeclimb/models/play_early_media.rb +225 -0
  135. data/lib/freeclimb/models/play_early_media_all_of.rb +212 -0
  136. data/lib/freeclimb/models/queue_request.rb +4 -14
  137. data/lib/freeclimb/models/record_utterance.rb +275 -0
  138. data/lib/freeclimb/models/record_utterance_all_of.rb +262 -0
  139. data/lib/freeclimb/models/redirect.rb +220 -0
  140. data/lib/freeclimb/models/redirect_all_of.rb +207 -0
  141. data/lib/freeclimb/models/remove_from_conference.rb +225 -0
  142. data/lib/freeclimb/models/remove_from_conference_all_of.rb +212 -0
  143. data/lib/freeclimb/models/say.rb +265 -0
  144. data/lib/freeclimb/models/say_all_of.rb +252 -0
  145. data/lib/freeclimb/models/send_digits.rb +245 -0
  146. data/lib/freeclimb/models/send_digits_all_of.rb +232 -0
  147. data/lib/freeclimb/models/set_listen.rb +235 -0
  148. data/lib/freeclimb/models/set_listen_all_of.rb +222 -0
  149. data/lib/freeclimb/models/set_talk.rb +235 -0
  150. data/lib/freeclimb/models/set_talk_all_of.rb +222 -0
  151. data/lib/freeclimb/models/sms.rb +265 -0
  152. data/lib/freeclimb/models/sms_all_of.rb +252 -0
  153. data/lib/freeclimb/models/start_record_call.rb +209 -0
  154. data/lib/freeclimb/models/terminate_conference.rb +225 -0
  155. data/lib/freeclimb/models/terminate_conference_all_of.rb +212 -0
  156. data/lib/freeclimb/models/update_call_request.rb +4 -14
  157. data/lib/freeclimb/models/update_conference_participant_request.rb +4 -14
  158. data/lib/freeclimb/models/update_conference_request.rb +4 -14
  159. data/lib/freeclimb/version.rb +1 -1
  160. data/spec/api/default_api_spec.rb +9 -24
  161. data/spec/models/add_to_conference_spec.rb +95 -0
  162. data/spec/models/create_conference_spec.rb +71 -0
  163. data/spec/models/{dequeue_member_request_spec.rb → dequeue_spec.rb} +8 -7
  164. data/spec/models/enqueue_spec.rb +59 -0
  165. data/spec/models/get_digits_spec.rb +83 -0
  166. data/spec/models/get_speech_spec.rb +113 -0
  167. data/spec/models/out_dial_spec.rb +89 -0
  168. data/spec/models/pause_spec.rb +41 -0
  169. data/spec/models/percl_command_spec.rb +41 -0
  170. data/spec/models/percl_script_spec.rb +41 -0
  171. data/spec/models/play_early_media_spec.rb +41 -0
  172. data/spec/models/play_spec.rb +53 -0
  173. data/spec/models/record_utterance_spec.rb +71 -0
  174. data/spec/models/redirect_spec.rb +41 -0
  175. data/spec/models/remove_from_conference_spec.rb +41 -0
  176. data/spec/models/say_spec.rb +65 -0
  177. data/spec/models/send_digits_spec.rb +47 -0
  178. data/spec/models/set_listen_spec.rb +47 -0
  179. data/spec/models/set_talk_spec.rb +47 -0
  180. data/spec/models/sms_spec.rb +59 -0
  181. data/spec/models/start_record_call_spec.rb +35 -0
  182. data/spec/models/terminate_conference_spec.rb +41 -0
  183. metadata +126 -35
  184. data/docs/DequeueMemberRequest.md +0 -17
  185. data/docs/Percl.md +0 -697
  186. data/git_push.sh +0 -58
  187. data/lib/percl/calls.rb +0 -43
  188. data/lib/percl/conference_participants.rb +0 -40
  189. data/lib/percl/conferences.rb +0 -21
  190. data/lib/percl/ivr.rb +0 -63
  191. data/lib/percl/jsonable.rb +0 -23
  192. data/lib/percl/percl.rb +0 -29
  193. data/lib/percl/queue_members.rb +0 -15
  194. data/lib/percl/recordings.rb +0 -15
  195. data/lib/percl/sms.rb +0 -11
  196. data/spec/percl/calls_spec.rb +0 -111
  197. data/spec/percl/conference_participant_spec.rb +0 -96
  198. data/spec/percl/conference_spec.rb +0 -46
  199. data/spec/percl/ivr_spec.rb +0 -155
  200. data/spec/percl/jsonable_spec.rb +0 -28
  201. data/spec/percl/percl_spec.rb +0 -31
  202. data/spec/percl/queue_members_spec.rb +0 -35
  203. data/spec/percl/recordings_spec.rb +0 -32
  204. data/spec/percl/sms_spec.rb +0 -29
@@ -1,46 +0,0 @@
1
- require 'spec_helper'
2
-
3
- describe 'Conferences' do
4
- describe 'CreateConference' do
5
- describe 'initialize' do
6
- before do
7
- @instance = Percl::CreateConference.new('MOCK_ACTION_URL')
8
- end
9
- it 'should set actionUrl' do
10
- actionUrl = @instance.instance_variable_get :@actionUrl
11
- expect(actionUrl).to eq('MOCK_ACTION_URL')
12
- end
13
- end
14
- describe 'instance variables' do
15
- before do
16
- @instance = Percl::CreateConference.new('MOCK_ACTION_URL')
17
- end
18
- it 'should have alias' do
19
- expect(@instance).to respond_to(:alias)
20
- end
21
- it 'should have playBeep' do
22
- expect(@instance).to respond_to(:playBeep)
23
- end
24
- it 'should have record' do
25
- expect(@instance).to respond_to(:record)
26
- end
27
- it 'should have waitUrl' do
28
- expect(@instance).to respond_to(:waitUrl)
29
- end
30
- it 'should have statusCallbackUrl' do
31
- expect(@instance).to respond_to(:statusCallbackUrl)
32
- end
33
- end
34
- end
35
- describe 'TerminateConference' do
36
- describe 'initialize' do
37
- before do
38
- @instance = Percl::TerminateConference.new('MOCK_CONF_ID')
39
- end
40
- it 'should set conferenceId' do
41
- confId = @instance.instance_variable_get :@conferenceId
42
- expect(confId).to eq('MOCK_CONF_ID')
43
- end
44
- end
45
- end
46
- end
@@ -1,155 +0,0 @@
1
- require 'spec_helper'
2
-
3
- describe 'ivr' do
4
- describe 'PlayEarlyMedia' do
5
- describe 'initialize' do
6
- before do
7
- @instance = Percl::PlayEarlyMedia.new('MOCK_FILE')
8
- end
9
- it 'should set file' do
10
- file = @instance.instance_variable_get(:@file)
11
- expect(file).to eq('MOCK_FILE')
12
- end
13
- end
14
- end
15
- describe 'Say' do
16
- describe 'initialize' do
17
- before do
18
- @instance = Percl::Say.new('MOCK_RESPONSE')
19
- end
20
- it 'should set text' do
21
- text = @instance.instance_variable_get :@text
22
- expect(text).to eq('MOCK_RESPONSE')
23
- end
24
- end
25
- describe 'instance variables' do
26
- before do
27
- @instance = Percl::Say.new('MOCK_RESPONSE')
28
- end
29
- it 'should have language' do
30
- expect(@instance).to respond_to(:language)
31
- end
32
- it 'should have loop' do
33
- expect(@instance).to respond_to(:loop)
34
- end
35
- it 'should have conferenceId' do
36
- expect(@instance).to respond_to(:conferenceId)
37
- end
38
- it 'should have enforcePCI' do
39
- expect(@instance).to respond_to(:enforcePCI)
40
- end
41
- end
42
- end
43
- describe 'Play' do
44
- describe 'initialize' do
45
- before do
46
- @instance = Percl::Play.new('MOCK_FILE')
47
- end
48
- it 'should have file' do
49
- file = @instance.instance_variable_get :@file
50
- expect(file).to eq('MOCK_FILE')
51
- end
52
- end
53
- describe 'instance variables' do
54
- before do
55
- @instance = Percl::Play.new('MOCK_FILE')
56
- end
57
- it 'should have loop' do
58
- expect(@instance).to respond_to(:loop)
59
- end
60
- it 'should have conferenceId' do
61
- expect(@instance).to respond_to(:conferenceId)
62
- end
63
- end
64
- end
65
- describe 'GetDigits' do
66
- describe 'initialize' do
67
- before do
68
- @instance = Percl::GetDigits.new('MOCK_ACTION_URL')
69
- end
70
- it 'should set actionUrl' do
71
- actionUrl = @instance.instance_variable_get :@actionUrl
72
- expect(actionUrl).to eq('MOCK_ACTION_URL')
73
- end
74
- end
75
- describe 'instance variables' do
76
- before do
77
- @instance = Percl::GetDigits.new('MOCK_ACTION_URL')
78
- end
79
- it 'should have initialTimeoutMs' do
80
- expect(@instance).to respond_to(:initialTimeoutMs)
81
- end
82
- it 'should have digitTimeoutMs' do
83
- expect(@instance).to respond_to(:digitTimeoutMs)
84
- end
85
- it 'should have finishOnKey' do
86
- expect(@instance).to respond_to(:finishOnKey)
87
- end
88
- it 'should have minDigits' do
89
- expect(@instance).to respond_to(:minDigits)
90
- end
91
- it 'should have maxDigits' do
92
- expect(@instance).to respond_to(:maxDigits)
93
- end
94
- it 'should have flushBuffer' do
95
- expect(@instance).to respond_to(:flushBuffer)
96
- end
97
- it 'should have prompts' do
98
- expect(@instance).to respond_to(:prompts)
99
- end
100
- it 'should have enforePCI' do
101
- expect(@instance).to respond_to(:enforcePCI)
102
- end
103
- end
104
- end
105
- describe 'GetSpeech' do
106
- describe 'initialize' do
107
- before do
108
- @instance = Percl::GetSpeech.new('MOCK_ACTION_URL', 'MOCK_GRAMMAR_FILE')
109
- end
110
- it 'should set actionUrl' do
111
- actionUrl = @instance.instance_variable_get :@actionUrl
112
- expect(actionUrl).to eq('MOCK_ACTION_URL')
113
- end
114
- it 'should set grammarFile' do
115
- grammarFile = @instance.instance_variable_get :@grammarFile
116
- expect(grammarFile).to eq('MOCK_GRAMMAR_FILE')
117
- end
118
- end
119
- describe 'instance variables' do
120
- before do
121
- @instance = Percl::GetSpeech.new('MOCK_ACTION_URL', 'MOCK_GRAMAR_FILE')
122
- end
123
- it 'should have grammarType' do
124
- expect(@instance).to respond_to(:grammarType)
125
- end
126
- it 'should have grammarRule' do
127
- expect(@instance).to respond_to(:grammarRule)
128
- end
129
- it 'should have playBeep' do
130
- expect(@instance).to respond_to(:playBeep)
131
- end
132
- it 'should have prompts' do
133
- expect(@instance).to respond_to(:prompts)
134
- end
135
- it 'should have noInputTimeoutMs' do
136
- expect(@instance).to respond_to(:noInputTimeoutMs)
137
- end
138
- it 'should have confidenceThreshold' do
139
- expect(@instance).to respond_to(:confidenceThreshold)
140
- end
141
- it 'should have sensitivityLevel' do
142
- expect(@instance).to respond_to(:sensitivityLevel)
143
- end
144
- it 'should have enforePCI' do
145
- expect(@instance).to respond_to(:enforcePCI)
146
- end
147
- it 'should have speechCompleteTimeoutMs' do
148
- expect(@instance).to respond_to(:speechCompleteTimeoutMs)
149
- end
150
- it 'should have speechIncompleteTimeoutMs' do
151
- expect(@instance).to respond_to(:speechIncompleteTimeoutMs)
152
- end
153
- end
154
- end
155
- end
@@ -1,28 +0,0 @@
1
- require 'spec_helper'
2
-
3
- describe 'JSONable' do
4
- describe 'as_json' do
5
- describe 'one level object' do
6
- it 'stringfies the Percl script' do
7
- script = Percl::Script.new
8
- say = Percl::Say.new('MOCK_RESPONSE')
9
- script.add(say)
10
- json = script.to_json
11
- expected_json = "[{\"Say\":{\"text\":\"MOCK_RESPONSE\"}}]"
12
- expect(json).to eq(expected_json)
13
- end
14
- end
15
- describe 'multi-level object' do
16
- it 'stringfies the Percl script' do
17
- script = Percl::Script.new
18
- getDigits = Percl::GetDigits.new('MOCK_ACTION_URL')
19
- say = Percl::Say.new('MOCK_RESPONSE')
20
- getDigits.prompts = [say]
21
- script.add(getDigits)
22
- json = script.to_json
23
- expected_json = "[{\"GetDigits\":{\"actionUrl\":\"MOCK_ACTION_URL\",\"prompts\":[{\"Say\":{\"text\":\"MOCK_RESPONSE\"}}]}}]"
24
- expect(json).to eq(expected_json)
25
- end
26
- end
27
- end
28
- end
@@ -1,31 +0,0 @@
1
- require 'spec_helper'
2
-
3
- describe 'percl' do
4
- describe 'script' do
5
- describe 'add' do
6
- it 'should add argument to commands array' do
7
- script = Percl::Script.new
8
- script.add('MOCK_PERCL')
9
- commands = script.instance_variable_get :@commands
10
- expect(commands).to match_array(['MOCK_PERCL'])
11
- end
12
- end
13
- describe 'initialize' do
14
- it 'should create an empty commands array' do
15
- script = Percl::Script.new
16
- commands = script.instance_variable_get :@commands
17
- expect(commands).to match_array([])
18
- end
19
- end
20
- describe 'to_json' do
21
- it 'should return commands as json string' do
22
- expected = "[{\"Say\":{\"text\":\"MOCK SAY COMMAND\"}}]"
23
- say = Percl::Say.new('MOCK SAY COMMAND')
24
- script = Percl::Script.new
25
- script.add(say)
26
- json = script.to_json
27
- expect(json).to eq(expected)
28
- end
29
- end
30
- end
31
- end
@@ -1,35 +0,0 @@
1
- require 'spec_helper'
2
-
3
- describe 'Queue Members' do
4
- describe 'Enqueue' do
5
- describe 'initialize' do
6
- before do
7
- @instance = Percl::Enqueue.new('MOCK_QUEUE_ID', 'MOCK_WAIT_URL', 'MOCK_ACTION_URL')
8
- end
9
- it 'should set queueId' do
10
- queueId = @instance.instance_variable_get :@queueId
11
- expect(queueId).to eq('MOCK_QUEUE_ID')
12
- end
13
- it 'should set waitUrl' do
14
- waitUrl = @instance.instance_variable_get :@waitUrl
15
- end
16
- it 'should set actionUrl' do
17
- actionUrl = @instance.instance_variable_get :@actionUrl
18
- end
19
- end
20
- describe 'instance variables' do
21
- before do
22
- @instance = Percl::Enqueue.new('MOCK_QUEUE_ID', 'MOCK_WAIT_URL', 'MOCK_ACTION_URL')
23
- end
24
- it 'should have notificationUrl' do
25
- expect(@instance).to respond_to(:notificationUrl)
26
- end
27
- end
28
- end
29
- describe 'Dequeue' do
30
- it 'should instantiate' do
31
- instance = Percl::Dequeue.new
32
- expect(instance).to be_truthy
33
- end
34
- end
35
- end
@@ -1,32 +0,0 @@
1
- require 'spec_helper'
2
-
3
- describe 'Recordings' do
4
- describe 'RecordUtterance' do
5
- describe 'initialize' do
6
- before do
7
- @instance = Percl::RecordUtterance.new('MOCK_ACTION_URL')
8
- end
9
- it 'should set actionUrl' do
10
- actionUrl = @instance.instance_variable_get :@actionUrl
11
- expect(actionUrl).to eq('MOCK_ACTION_URL')
12
- end
13
- end
14
- describe 'instance variables' do
15
- before do
16
- @instance = Percl::RecordUtterance.new('MOCK_ACTION_URL')
17
- end
18
- it 'should have silenceTimeoutMs' do
19
- expect(@instance).to respond_to(:silenceTimeoutMs)
20
- end
21
- it 'should have finishOnKey' do
22
- expect(@instance).to respond_to(:finishOnKey)
23
- end
24
- it 'should have maxLengthSec' do
25
- expect(@instance).to respond_to(:maxLengthSec)
26
- end
27
- it 'should have autoStart' do
28
- expect(@instance).to respond_to(:autoStart)
29
- end
30
- end
31
- end
32
- end
@@ -1,29 +0,0 @@
1
- require 'spec_helper'
2
-
3
- describe 'SMS' do
4
- describe 'initialize' do
5
- before do
6
- @instance = Percl::Sms.new('MOCK_TO', 'MOCK_FROM', 'MOCK_TEXT')
7
- end
8
- it 'should set to' do
9
- to = @instance.instance_variable_get :@to
10
- expect(to).to eq('MOCK_TO')
11
- end
12
- it 'should set from' do
13
- from = @instance.instance_variable_get :@from
14
- expect(from).to eq('MOCK_FROM')
15
- end
16
- it 'should set text' do
17
- text = @instance.instance_variable_get :@text
18
- expect(text).to eq('MOCK_TEXT')
19
- end
20
- end
21
- describe 'instance variables' do
22
- before do
23
- @instance = Percl::Sms.new('MOCK_TO', 'MOCK_FROM', 'MOCK_TEXT')
24
- end
25
- it 'should have notificationUrl' do
26
- expect(@instance).to respond_to(:notificationUrl)
27
- end
28
- end
29
- end