twilio-test-toolkit 2.0.0 → 3.0.0
Sign up to get free protection for your applications and to get access to all the features.
- data/README.md +11 -2
- data/lib/twilio-test-toolkit/call_in_progress.rb +1 -1
- data/lib/twilio-test-toolkit/call_scope.rb +9 -0
- data/lib/twilio-test-toolkit/version.rb +1 -1
- data/spec/dummy/app/views/twilio/test_play.xml.erb +1 -0
- data/spec/dummy/config/routes.rb +2 -1
- data/spec/dummy/db/development.sqlite3 +0 -0
- data/spec/dummy/db/test.sqlite3 +0 -0
- data/spec/dummy/log/test.log +1546 -0
- data/spec/requests/call_scope_spec.rb +16 -0
- data/spec/requests/dsl_spec.rb +2 -2
- metadata +12 -4
@@ -124,6 +124,22 @@ describe TwilioTestToolkit::CallScope do
|
|
124
124
|
end
|
125
125
|
end
|
126
126
|
|
127
|
+
describe "play" do
|
128
|
+
before(:each) do
|
129
|
+
@call = ttt_call(test_play_twilio_index_path, @our_number, @their_number)
|
130
|
+
end
|
131
|
+
|
132
|
+
it "should have the expected say play methods" do
|
133
|
+
@call.should respond_to(:has_play?)
|
134
|
+
end
|
135
|
+
|
136
|
+
it "should have the right values for has_say?" do
|
137
|
+
@call.has_play?("/path/to/a/different/audio/clip.mp3").should be_false
|
138
|
+
@call.has_play?("/path/to/an/audio/clip.mp3").should be_true
|
139
|
+
@call.has_play?("clip.mp3").should be_false
|
140
|
+
end
|
141
|
+
end
|
142
|
+
|
127
143
|
describe "dial" do
|
128
144
|
before(:each) do
|
129
145
|
@call = ttt_call(test_dial_twilio_index_path, @our_number, @their_number)
|
data/spec/requests/dsl_spec.rb
CHANGED
@@ -21,7 +21,7 @@ describe TwilioTestToolkit::DSL do
|
|
21
21
|
end
|
22
22
|
|
23
23
|
it "should default the method to post" do
|
24
|
-
@call.
|
24
|
+
@call.http_method.should == :post
|
25
25
|
end
|
26
26
|
|
27
27
|
it "should have the right properties" do
|
@@ -47,7 +47,7 @@ describe TwilioTestToolkit::DSL do
|
|
47
47
|
end
|
48
48
|
|
49
49
|
it "should be a get call" do
|
50
|
-
@call.
|
50
|
+
@call.http_method.should == :get
|
51
51
|
end
|
52
52
|
end
|
53
53
|
end
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: twilio-test-toolkit
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version:
|
4
|
+
version: 3.0.0
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2013-02-
|
12
|
+
date: 2013-02-26 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: capybara
|
@@ -50,7 +50,7 @@ dependencies:
|
|
50
50
|
requirements:
|
51
51
|
- - ~>
|
52
52
|
- !ruby/object:Gem::Version
|
53
|
-
version: 3.2.
|
53
|
+
version: 3.2.12
|
54
54
|
type: :development
|
55
55
|
prerelease: false
|
56
56
|
version_requirements: !ruby/object:Gem::Requirement
|
@@ -58,7 +58,7 @@ dependencies:
|
|
58
58
|
requirements:
|
59
59
|
- - ~>
|
60
60
|
- !ruby/object:Gem::Version
|
61
|
-
version: 3.2.
|
61
|
+
version: 3.2.12
|
62
62
|
- !ruby/object:Gem::Dependency
|
63
63
|
name: sqlite3
|
64
64
|
requirement: !ruby/object:Gem::Requirement
|
@@ -164,6 +164,7 @@ files:
|
|
164
164
|
- spec/dummy/app/views/twilio/test_action.xml.erb
|
165
165
|
- spec/dummy/app/views/twilio/test_dial.xml.erb
|
166
166
|
- spec/dummy/app/views/twilio/test_hangup.xml.erb
|
167
|
+
- spec/dummy/app/views/twilio/test_play.xml.erb
|
167
168
|
- spec/dummy/app/views/twilio/test_redirect.xml.erb
|
168
169
|
- spec/dummy/app/views/twilio/test_say.xml.erb
|
169
170
|
- spec/dummy/app/views/twilio/test_start.xml.erb
|
@@ -183,6 +184,9 @@ files:
|
|
183
184
|
- spec/dummy/config/locales/en.yml
|
184
185
|
- spec/dummy/config/routes.rb
|
185
186
|
- spec/dummy/config.ru
|
187
|
+
- spec/dummy/db/development.sqlite3
|
188
|
+
- spec/dummy/db/test.sqlite3
|
189
|
+
- spec/dummy/log/test.log
|
186
190
|
- spec/dummy/public/404.html
|
187
191
|
- spec/dummy/public/422.html
|
188
192
|
- spec/dummy/public/500.html
|
@@ -229,6 +233,7 @@ test_files:
|
|
229
233
|
- spec/dummy/app/views/twilio/test_action.xml.erb
|
230
234
|
- spec/dummy/app/views/twilio/test_dial.xml.erb
|
231
235
|
- spec/dummy/app/views/twilio/test_hangup.xml.erb
|
236
|
+
- spec/dummy/app/views/twilio/test_play.xml.erb
|
232
237
|
- spec/dummy/app/views/twilio/test_redirect.xml.erb
|
233
238
|
- spec/dummy/app/views/twilio/test_say.xml.erb
|
234
239
|
- spec/dummy/app/views/twilio/test_start.xml.erb
|
@@ -248,6 +253,9 @@ test_files:
|
|
248
253
|
- spec/dummy/config/locales/en.yml
|
249
254
|
- spec/dummy/config/routes.rb
|
250
255
|
- spec/dummy/config.ru
|
256
|
+
- spec/dummy/db/development.sqlite3
|
257
|
+
- spec/dummy/db/test.sqlite3
|
258
|
+
- spec/dummy/log/test.log
|
251
259
|
- spec/dummy/public/404.html
|
252
260
|
- spec/dummy/public/422.html
|
253
261
|
- spec/dummy/public/500.html
|