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.
@@ -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)
@@ -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.method.should == :post
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.method.should == :get
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: 2.0.0
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-02 00:00:00.000000000 Z
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.8
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.8
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