Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Capybara conflict? #5

Open
SanderMander opened this issue Aug 20, 2014 · 1 comment
Open

Capybara conflict? #5

SanderMander opened this issue Aug 20, 2014 · 1 comment

Comments

@SanderMander
Copy link

Can't run any tests with error:
/home/vagrant/.rvm/rubies/ruby-2.1.2/lib/ruby/gems/2.1.0/gems/capybara-2.4.1/lib/capybara/rails.rb:15:in <top (required)>': undefined methodjoin' for nil:NilClass (NoMethodError)

ruby 2.1.2 rails 4.1

@cgunther
Copy link
Contributor

I can confirm I'm seeing this as well, Ruby 1.9.3-p551, Rails 3.1.12, RSpec 2.14, Capybara 2.4.4.

A quick workaround I found was to change your Gemfile to not require rspec-rails-caching:

Change:

gem 'rspec-rails-caching'

To:

gem 'rspec-rails-caching', require: false

Then in your spec_helper.rb file, require this gem after capybara:

Change:

require 'capybara/rails'

To:

require 'capybara/rails'
require 'rspec-rails-caching'

I'll try to dig a bit deeper and see if I can find a proper fix.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants