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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: fa2ce155490ae89049cd4968940057c04dcc3c81
4
- data.tar.gz: f2124277bd493dc896806a69ca244b16eec74e2c
3
+ metadata.gz: 7063de78c9f33e5bf46cdf71bea59ebffbbac735
4
+ data.tar.gz: 0b7fbe53fea3ecf9868283128dccac6ee4c4db0f
5
5
  SHA512:
6
- metadata.gz: ef1232530347496677f8d8b49d18bc07594c491aee3082c9d5bd620b6d3400be5c77da31ad0a535da757bdab83d249cf62e45463924e0fdf8f1f6aa3300d498a
7
- data.tar.gz: 3bdc295d0084bf574a4dfae1971a7e7d7f38395d12b9bb2d80aa7bf36c868216301d97ff1d02893731bb2769211b5480d4cb2f5f5d8cc96ba930a14118ebaf04
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.driver.options[:timeout].should == 3
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.driver.options[:timeout].should == 1
67
+ subject.timeout.should == 1
68
68
  end
69
69
 
70
70
  it "is used during request" do
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: capybara-typhoeus
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.4
4
+ version: 0.3.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Joseph HALTER