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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 976fa14fb8f2e89fafd33627cccad6fc6eb5e608
4
- data.tar.gz: 8bdfbdad63eb49903137ededceda11a0601033c8
3
+ metadata.gz: 3bc08b3f8d4765b5663ba6ffb9ce05ebc283bba3
4
+ data.tar.gz: 5816acdf0d73ae05618319fd0e8d86789379c932
5
5
  SHA512:
6
- metadata.gz: 01eebe64bf5ba365d3839e54f8ff6128dd3d67fc9079cc41cbc04e9d067493a84cbad75cf1334149d509ac036e3ca26b107f042eeb788cefb4bb23af47047ded
7
- data.tar.gz: 95dd04c59b0c133f4de0c64690ba8045d9fe553019747e06b24b2626c2e110640b56a1058ba57947f0b5d33e7c80efe617219c5d4c302b678fcceaecf49d76bc
6
+ metadata.gz: b7b2cd702a64a27d7178d87134eaaff6fe1fccb354579b71b00a68bf5eb3e33289abb81da639d4e4a03bdb7ade20eeb62b9c98e91fc1af64d270e86482f27204
7
+ data.tar.gz: 1b3d9639556d82a5df749226f2047115fc651f3d52012e3729af1ec1fe4de7043c3b6a17e7f62f25ebea2c5b8962b547affc0c281e504f69dd54fb8e23baafba
@@ -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
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.1
4
+ version: 0.3.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Joseph HALTER