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

undefined local variable or method show_me_the_cookies #23

Closed
mois3x opened this issue Jun 5, 2014 · 4 comments
Closed

undefined local variable or method show_me_the_cookies #23

mois3x opened this issue Jun 5, 2014 · 4 comments

Comments

@mois3x
Copy link

mois3x commented Jun 5, 2014

Hey guys getting this error, im getting this error. I did include config.include ShowMeTheCookies, :type => :feature

However when i call the method in an example just throw

  undefined local variable or method `show_me_the_cookies' for #<RSpec::ExampleGroups::DialogsAuth::WithOmniauthAndBrandClientId::....

im using new rails 4.1.1 and recent version of Rspec and Capybara

@nruth
Copy link
Owner

nruth commented Jun 23, 2014

You may have more success getting help stackoverflow. What kind of spec is it? Did you tag it as feature, or put it in the spec/feature directory? Does capybara work normally there? Have you bundled the gem in your test environment?

@nruth
Copy link
Owner

nruth commented Jul 6, 2014

I just ran into something similar when trying out sauce for multi-browser testing. I got around it by putting the gem in the test & dev groups instead of only the test group. YMMV.

@vimcat
Copy link

vimcat commented Oct 1, 2014

I had the same problem. What I was missing was require 'show_me_the_cookies' in spec_helper.rb

@nruth
Copy link
Owner

nruth commented Feb 11, 2015

My setup is described in the readme and I'm afraid I don't know much more about it.
I'm closing this as it's an old ticket but if it's still a problem please let us know.

I'm surprised you'd need to add a require statement, as I thought the gemfile handled that. But if it worked it worked.

@nruth nruth closed this as completed Feb 11, 2015
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

3 participants