Please sign in to comment.
We can only test rspec-rails 3 with capybara on 1.9.3 and above
* See the comment for more details
- Loading branch information...
Showing with 10 additions and 5 deletions.
|@@ -0,0 +1,7 @@|
|+Around "@capybara" do |scenario, block||
|+ # We are caught in a weird situation here. rspec-rails supports 1.8.7 and|
|+ # above, but capybara beyond a certain version only supports 1.9.3 and above.|
|+ # On 1.8.7 and 1.9.2, we run most of the rspec-rails test suite but leave out|
|+ # parts that require capybara.|
|+ block.call if defined?(::Capybara)|