capybara 2.4.3 → 2.4.4
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/History.md +7 -0
- data/README.md +3 -0
- data/lib/capybara/rails.rb +0 -6
- data/lib/capybara/spec/session/visit_spec.rb +1 -1
- data/lib/capybara/version.rb +1 -1
- metadata +3 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 24bfd6f78b94fddf5e448207bc03748a8bb41062
|
4
|
+
data.tar.gz: f17b2f16859196a37065620554370b2f157b6160
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 78366458c597a3343d6d78a835be3ef1d115463b7a307ac05c81ffa439b20873be5866a6bb275e48cb047f223911f0674899a85818e4143272f165fdb44ee5e5
|
7
|
+
data.tar.gz: 8e2ffa766a58fc153510c8a6ba1d403092ce7d4b923a1d75ba934936a94d83fac5df6f421b003b0558382d747d5ea0dcb7ccfe0b380370cc531202917cb9181c
|
data/History.md
CHANGED
data/README.md
CHANGED
@@ -36,6 +36,9 @@ If the application that you are testing is a Rails app, add this line to your te
|
|
36
36
|
require 'capybara/rails'
|
37
37
|
```
|
38
38
|
|
39
|
+
Note: In rails 4.0/4.1 The default rails test environment ( config/environments/test.rb ) is not threadsafe - see https://github.com/rails/rails/issues/15089
|
40
|
+
If you experience random errors about missing constants, adding config.allow_concurrency = false to config/environements/test.rb should solve the issue.
|
41
|
+
|
39
42
|
If the application that you are testing is a Rack app, but not Rails, set Capybara.app to your Rack app:
|
40
43
|
|
41
44
|
```ruby
|
data/lib/capybara/rails.rb
CHANGED
@@ -2,12 +2,6 @@ require 'capybara'
|
|
2
2
|
require 'capybara/dsl'
|
3
3
|
|
4
4
|
Capybara.app = Rack::Builder.new do
|
5
|
-
# Work around an issue where rails allows concurrency in test mode even though eager_load
|
6
|
-
# is false which can cause an issue with constant loading
|
7
|
-
if Gem::Version.new(Rails.version) >= Gem::Version.new("4.0")
|
8
|
-
use Rack::Lock unless Rails.application.config.allow_concurrency || Rails.application.config.eager_load || Rails.application.middleware.include?(Rack::Lock)
|
9
|
-
end
|
10
|
-
|
11
5
|
map "/" do
|
12
6
|
if Gem::Version.new(Rails.version) >= Gem::Version.new("3.0")
|
13
7
|
run Rails.application
|
@@ -22,7 +22,7 @@ Capybara::SpecHelper.spec '#visit' do
|
|
22
22
|
@session.visit('/foo/bar')
|
23
23
|
root_uri = URI.parse(@session.current_url)
|
24
24
|
|
25
|
-
@session.visit("http
|
25
|
+
@session.visit("http://#{root_uri.host}:#{root_uri.port}")
|
26
26
|
expect(@session).to have_content('Hello world!')
|
27
27
|
end
|
28
28
|
|
data/lib/capybara/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: capybara
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.4.
|
4
|
+
version: 2.4.4
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Jonas Nicklas
|
@@ -9,7 +9,7 @@ autorequire:
|
|
9
9
|
bindir: bin
|
10
10
|
cert_chain:
|
11
11
|
- gem-public_cert.pem
|
12
|
-
date: 2014-
|
12
|
+
date: 2014-10-13 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: nokogiri
|
@@ -383,10 +383,9 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
383
383
|
version: '0'
|
384
384
|
requirements: []
|
385
385
|
rubyforge_project: capybara
|
386
|
-
rubygems_version: 2.
|
386
|
+
rubygems_version: 2.4.2
|
387
387
|
signing_key:
|
388
388
|
specification_version: 4
|
389
389
|
summary: Capybara aims to simplify the process of integration testing Rack applications,
|
390
390
|
such as Rails, Sinatra or Merb
|
391
391
|
test_files: []
|
392
|
-
has_rdoc:
|