capybara-typhoeus 0.3.4 → 0.3.5
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/capybara/typhoeus/session.rb +8 -0
- data/spec/session/typhoeus_spec.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: 7063de78c9f33e5bf46cdf71bea59ebffbbac735
|
4
|
+
data.tar.gz: 0b7fbe53fea3ecf9868283128dccac6ee4c4db0f
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: e18a5d98c0c730bb7316dc1ca4f5f316cee14e284548373faf785f07c339b6c5a751b101230a2a9d1e1d8e239280b0195d38477e204419c4760a7b593c8eb8de
|
7
|
+
data.tar.gz: 3de1d8a1a879cfb531ff6332a7b27bfd665ca1a352a72bc60240a85fb3eec380a92c1b5ea7f73792bfd03755123442f4d9fa5a692a2d06169ae854309759ef7b
|
@@ -34,6 +34,10 @@ class Capybara::Typhoeus::Session < Capybara::Session
|
|
34
34
|
url
|
35
35
|
end
|
36
36
|
|
37
|
+
def timeout
|
38
|
+
driver.options[:timeout]
|
39
|
+
end
|
40
|
+
|
37
41
|
def request_body
|
38
42
|
driver.request_body
|
39
43
|
end
|
@@ -42,4 +46,8 @@ class Capybara::Typhoeus::Session < Capybara::Session
|
|
42
46
|
driver.request_body = value
|
43
47
|
end
|
44
48
|
|
49
|
+
def as=(value)
|
50
|
+
driver.as = value
|
51
|
+
end
|
52
|
+
|
45
53
|
end
|
@@ -51,7 +51,7 @@ describe Capybara::Typhoeus::Session do
|
|
51
51
|
|
52
52
|
context "default" do
|
53
53
|
it "is 3 seconds" do
|
54
|
-
subject.
|
54
|
+
subject.timeout.should == 3
|
55
55
|
end
|
56
56
|
|
57
57
|
it "is used during request" do
|
@@ -64,7 +64,7 @@ describe Capybara::Typhoeus::Session do
|
|
64
64
|
subject{ described_class.new :typhoeus_with_custom_timeout, TestApp }
|
65
65
|
|
66
66
|
it "is stored in options" do
|
67
|
-
subject.
|
67
|
+
subject.timeout.should == 1
|
68
68
|
end
|
69
69
|
|
70
70
|
it "is used during request" do
|