capybara-typhoeus 0.3.1 → 0.3.2
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/lib/capybara/typhoeus.rb +1 -1
- data/spec/session/typhoeus_spec.rb +5 -0
- 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: 3bc08b3f8d4765b5663ba6ffb9ce05ebc283bba3
|
|
4
|
+
data.tar.gz: 5816acdf0d73ae05618319fd0e8d86789379c932
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: b7b2cd702a64a27d7178d87134eaaff6fe1fccb354579b71b00a68bf5eb3e33289abb81da639d4e4a03bdb7ade20eeb62b9c98e91fc1af64d270e86482f27204
|
|
7
|
+
data.tar.gz: 1b3d9639556d82a5df749226f2047115fc651f3d52012e3729af1ec1fe4de7043c3b6a17e7f62f25ebea2c5b8962b547affc0c281e504f69dd54fb8e23baafba
|
data/lib/capybara/typhoeus.rb
CHANGED
|
@@ -8,7 +8,7 @@ module Capybara
|
|
|
8
8
|
autoload :Session, "capybara/typhoeus/session"
|
|
9
9
|
end
|
|
10
10
|
|
|
11
|
-
def current_session
|
|
11
|
+
def self.current_session
|
|
12
12
|
key = "#{current_driver}:#{session_name}:#{app.object_id}"
|
|
13
13
|
session_pool[key] ||= if current_driver==:typhoeus
|
|
14
14
|
::Capybara::Typhoeus::Session.new current_driver, app
|
|
@@ -16,6 +16,11 @@ describe Capybara::Typhoeus::Session do
|
|
|
16
16
|
]
|
|
17
17
|
|
|
18
18
|
context "with typhoeus driver" do
|
|
19
|
+
it "should use Capybara::Typhoeus::Session" do
|
|
20
|
+
Capybara.current_driver = :typhoeus
|
|
21
|
+
Capybara.current_session.should be_instance_of described_class
|
|
22
|
+
end
|
|
23
|
+
|
|
19
24
|
context "basic authentication" do
|
|
20
25
|
subject do
|
|
21
26
|
app = Sinatra.new do
|