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

irb_context warning in rails console #69

Closed
matthewhively opened this issue Mar 10, 2017 · 6 comments
Closed

irb_context warning in rails console #69

matthewhively opened this issue Mar 10, 2017 · 6 comments

Comments

@matthewhively
Copy link

irb: warn: can't alias context from irb_context.
Shows up in rails console if this gem is installed.

rspec gem versions installed (from Gemfile.lock)
rspec-core (3.5.4) rspec-expectations (3.5.0) rspec-mocks (3.5.0) rspec-rails (3.5.2) rspec-retry (0.5.3) rspec-support (3.5.0)

Similar issue in rspec-rails -- not sure if its related though
rspec/rspec-rails#1645

@michaelglass
Copy link
Contributor

what version ruby/rails?

@matthewhively
Copy link
Author

Rails 4.2.7
ruby 2.3.3p222

@michaelglass
Copy link
Contributor

michaelglass commented Mar 17, 2017

unlike rspec-rails which needs to be in the development group to load its generators, rspec-retry can live safely in your test group where it shouldn't interfere with rails console. Does that help?

@fragoulis
Copy link

Same here.

rspec-3.6.0
rspec-rails-3.6.0
rails-5.1.1
ruby 2.3.3

It does not happen with rails 4.2.7.1.

@BrianHicks
Copy link
Contributor

Auto-closed by PR, sorry. @matthewhively did this solve your problem?

@matthewhively
Copy link
Author

I would say that is a work around. Since you can choose to run rails console in any environment you choose it doesn't really solve the problem.
Furthermore it seems odd that rspec-retry should require to be placed into a different group from rspec-rails.

However since this has no actual downside of that message in console (that I'm aware of), this work around is good enough I suppose.

NOTE: still occurs in rails 4.2.10

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

4 participants