twilio-test-toolkit2 3.4.0 → 3.5.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/README.md +3 -3
- data/Rakefile +1 -1
- data/lib/twilio-test-toolkit/call_in_progress.rb +1 -1
- data/lib/twilio-test-toolkit/call_scope.rb +1 -1
- data/lib/twilio-test-toolkit/dsl.rb +1 -1
- data/lib/twilio-test-toolkit/version.rb +1 -1
- data/lib/twilio-test-toolkit.rb +1 -1
- data/spec/requests/call_scope_spec.rb +2 -2
- data/spec/requests/dsl_spec.rb +2 -2
- data/spec/spec_helper.rb +2 -2
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 9416d4a59dfdea43d2f6cbe0c05df1b02124570c
|
4
|
+
data.tar.gz: 9dd9f41f31268df95472ce53b969c29fe3201893
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 10752aabeaa6e085ca75d6381dae1c539c6dd5e45f1950306d78b4a7fc039d5aaefb63e45664f99da037bb41aa93d214ce090a9b3d035b212ad98dadf0839501
|
7
|
+
data.tar.gz: 6fbf2f900857eeb5e9eb466f835a6c1281866fd988537a476faa2e1a6ebfa96c58b5beb0ca8ac89e909472981ed30e1823944760abc0570d33c3e42951999cb3
|
data/README.md
CHANGED
@@ -73,7 +73,7 @@ You'll have to make one more change in spec/spec_helper.rb. If you are using Cap
|
|
73
73
|
RSpec.configure do |config|
|
74
74
|
...
|
75
75
|
# Configure Twilio Test Toolkit
|
76
|
-
config.include
|
76
|
+
config.include TwilioTestToolkit2::DSL, :type => :request
|
77
77
|
...
|
78
78
|
end
|
79
79
|
|
@@ -82,7 +82,7 @@ For Capybara 2.0, the "requests" directory is now called "features", so you need
|
|
82
82
|
RSpec.configure do |config|
|
83
83
|
...
|
84
84
|
# Configure Twilio Test Toolkit
|
85
|
-
config.include
|
85
|
+
config.include TwilioTestToolkit2::DSL, :type => :feature
|
86
86
|
...
|
87
87
|
end
|
88
88
|
|
@@ -114,7 +114,7 @@ Options are:
|
|
114
114
|
* **call_sid**. Specify an optional fixed value to be passed as params[:CallSid]. This is useful if you are expecting a specific SID. For instance, a common pattern is to initiate a call, store the SID in your database, and look up the call when you get the callback. If you don't pass a SID, TTT will generate one for you that's just a UUID.
|
115
115
|
* **is_machine**. Controls params[:AnsweredBy]. See Twilio's documentation for more information on how Twilio uses this.
|
116
116
|
|
117
|
-
*ttt_call* returns a *
|
117
|
+
*ttt_call* returns a *TwilioTestToolkit2::CallInProgress* object, which is a descendent of *TwilioTestToolkit2::CallScope*. You'll want to save this object as it's how you interact with TTT.
|
118
118
|
|
119
119
|
It's worth noting that TTT won't pass any of the parameters you need to [validate that a request comes from Twilio](http://www.twilio.com/docs/security). Most people seem to only do this check in production, so if that applies to you, this won't be an issue. If you do this check in dev and test, you might want to consider submitting a pull request with a fix.
|
120
120
|
|
data/Rakefile
CHANGED
@@ -14,7 +14,7 @@ end
|
|
14
14
|
|
15
15
|
RDoc::Task.new(:rdoc) do |rdoc|
|
16
16
|
rdoc.rdoc_dir = 'rdoc'
|
17
|
-
rdoc.title = '
|
17
|
+
rdoc.title = 'TwilioTestToolkit2'
|
18
18
|
rdoc.options << '--line-numbers'
|
19
19
|
rdoc.rdoc_files.include('README.rdoc')
|
20
20
|
rdoc.rdoc_files.include('lib/**/*.rb')
|
data/lib/twilio-test-toolkit.rb
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
require 'spec_helper'
|
2
2
|
|
3
|
-
describe
|
3
|
+
describe TwilioTestToolkit2::CallScope do
|
4
4
|
before(:each) do
|
5
5
|
@our_number = "2065551212"
|
6
6
|
@their_number = "2065553434"
|
@@ -12,7 +12,7 @@ describe TwilioTestToolkit::CallScope do
|
|
12
12
|
end
|
13
13
|
|
14
14
|
it "should be a CallScope" do
|
15
|
-
@call.should be_a(
|
15
|
+
@call.should be_a(TwilioTestToolkit2::CallScope)
|
16
16
|
end
|
17
17
|
|
18
18
|
it "should have the informational methods" do
|
data/spec/requests/dsl_spec.rb
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
require 'spec_helper'
|
2
2
|
|
3
|
-
describe
|
3
|
+
describe TwilioTestToolkit2::DSL do
|
4
4
|
before(:each) do
|
5
5
|
@our_number = "2065551212"
|
6
6
|
@their_number = "2065553434"
|
@@ -51,4 +51,4 @@ describe TwilioTestToolkit::DSL do
|
|
51
51
|
end
|
52
52
|
end
|
53
53
|
end
|
54
|
-
end
|
54
|
+
end
|
data/spec/spec_helper.rb
CHANGED