Merge branch 'cleanup-note-in-readme' of https://github.com/gmcnaughton/capybara into gmcnaughton-cleanup-note-in-readme

* 'cleanup-note-in-readme' of https://github.com/gmcnaughton/capybara:
  Clean up formatting of README note about Rails 4.0/1 test environment thread safety.
This commit is contained in:
Thomas Walpole 2015-02-26 10:25:45 -08:00
commit e72d78f695
1 changed files with 2 additions and 2 deletions

View File

@ -75,8 +75,8 @@ If the application that you are testing is a Rails app, add this line to your te
require 'capybara/rails'
```
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
If you experience random errors about missing constants, adding config.allow_concurrency = false to config/environments/test.rb should solve the issue.
**Note:** In Rails 4.0/4.1 the default test environment (`config/environments/test.rb`) is [not threadsafe](https://github.com/rails/rails/issues/15089).
If you experience random errors about missing constants, add `config.allow_concurrency = false` to `config/environments/test.rb`.
If the application that you are testing is a Rack app, but not Rails, set Capybara.app to your Rack app: