Skip to content
This repository was archived by the owner on Feb 14, 2019. It is now read-only.

derekprior/rspec_rails_bug

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

The Bug

If capybara/rspec is required before rspec/rails in your spec_helper.rb file, then you will be unable to use the capyabara ‘visit` method in a request spec unless it is nested inside a second describe block. See the lone request spec for a reproduction.

Interestingly, it seems unnecessary to require capybara/rspec at all. If I remvoe that entirely, the tests pass. They also pass if I require rspec/rails first.

About

reproducing an rspec-rails bug

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published