Skip to content

NoMethodError:undefined method `visit' for #<RSpec::ExampleGroups::ViewingTheListOfEvents:0x007ff5050beda0> #1120

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

Closed
ashleybye opened this issue Jul 8, 2014 · 2 comments

Comments

@ashleybye
Copy link

I know this has been discussed to death here (#360) but since the issue is closed I though it best to open a new one.

When following a rails tutorial I get the following error: NoMethodError:undefined method `visit' for #RSpec::ExampleGroups::ViewingTheListOfEvents:0x007ff5050beda0.

I am running:
capybara 2.4.1
rspec-rails 3.0.1
rails 4.1.4
ruby 2.1.2p95

My 'list_features_spec.rb' is in 'spec/features'. I've tried using all the suggested solutions at the above link with no joy. Unfortunately, I have no idea how to fix this or where to start looking for further troubleshooting.

Source code at time of error (very early into project): https://github.com/basicdesigns/rspec-rails-visit-error

@cupakromer
Copy link
Member

This is because you are on RSpec 3.0.1 which does not mix in metadata by default any more. See:

@cupakromer
Copy link
Member

Either add the config setting or tag your spec with type: :feature.

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