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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 528b48dabe29387ce0a87a66f8e910d8db810d9c
4
- data.tar.gz: 4fba477a651cf715dc70d7692158f59ac436c265
3
+ metadata.gz: 24bfd6f78b94fddf5e448207bc03748a8bb41062
4
+ data.tar.gz: f17b2f16859196a37065620554370b2f157b6160
5
5
  SHA512:
6
- metadata.gz: 43334e017d93b977f925be65fe2de6305569d4b041b5ac509d0b2ef59dc688b9ae31c986e0db19d1c00bf9d37d1d65727743c716e397070a91cabb0d4c0e7326
7
- data.tar.gz: 869a4ae204748134fee3a544932cfcb7ffb447f3cc9e6d12c8694e44d56cbc36215e431fbe17760e400bbe5972ad178686f75caeae9b568862d03917168355b9
6
+ metadata.gz: 78366458c597a3343d6d78a835be3ef1d115463b7a307ac05c81ffa439b20873be5866a6bb275e48cb047f223911f0674899a85818e4143272f165fdb44ee5e5
7
+ data.tar.gz: 8e2ffa766a58fc153510c8a6ba1d403092ce7d4b923a1d75ba934936a94d83fac5df6f421b003b0558382d747d5ea0dcb7ccfe0b380370cc531202917cb9181c
data/History.md CHANGED
@@ -1,3 +1,10 @@
1
+ #Version 2.4.4
2
+ Release data: 2014-10-13
3
+
4
+ ###Fixed
5
+ * Test for visit behavior updated [Phil Baker]
6
+ * Removed concurrency prevention in favor of a note in the README - due to load order issues
7
+
1
8
  # Version 2.4.3
2
9
  Relase date: 2014-09-21
3
10
 
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
@@ -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://localhost:#{root_uri.port}")
25
+ @session.visit("http://#{root_uri.host}:#{root_uri.port}")
26
26
  expect(@session).to have_content('Hello world!')
27
27
  end
28
28
 
@@ -1,3 +1,3 @@
1
1
  module Capybara
2
- VERSION = '2.4.3'
2
+ VERSION = '2.4.4'
3
3
  end
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.3
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-09-22 00:00:00.000000000 Z
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.2.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: