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: warn: can't alias context from irb_context. #1693

Closed
joelmichael opened this issue Aug 24, 2016 · 8 comments
Closed

irb: warn: can't alias context from irb_context. #1693

joelmichael opened this issue Aug 24, 2016 · 8 comments

Comments

@joelmichael
Copy link

I get this whenever I load a console with rspec 3.5.0 for some reason. Not sure if there is some configuration change possible, but it doesn't happen in 3.4.0, so we rolled back.

Loading development environment (Rails 4.2.7.1)
irb: warn: can't alias context from irb_context.
irb(main):001:0> 
@mrnugget
Copy link

See this issue: #1645 -- Seems to be fixed in the 3-5-maintenance branch and the fix has not been released yet. See commits here: https://github.com/rspec/rspec-rails/commits/3-5-maintenance

@fables-tales
Copy link
Member

@joelmichael as pointed out by @mrnugget a fix for this is merged, but has not yet been released.

@myronmarston
Copy link
Member

@samphippen -- thoughts on cutting an rspec-rails 3.5.2 release in the next week?

@fables-tales
Copy link
Member

@myronmarston I can probably commit to doing it over the coming weekend. If you or @JonRowe can do it sooner that'd be shiny.

@JonRowe
Copy link
Member

JonRowe commented Aug 25, 2016

I've just released 3.5.2

@panaak
Copy link

panaak commented Oct 29, 2016

the problem still persists for me:

rails 4.2.7.1
rspec-rails 3.5.2

Loading development environment (Rails 4.2.7.1)
irb: warn: can't alias context from irb_context.

@JonRowe
Copy link
Member

JonRowe commented Oct 31, 2016

It's possible another gem is causing this issue for you, a vanilla rails install at 4.2.7.1 with the latest RSpec gems doesn't cause this issue.

For now I suggest making sure all of your rspec gems are update to date with:

bundle update rspec rspec-rails rspec-core rspec-mocks rspec-expectations rspec-support

If you can provide a cloneable minimal reproduction repo we'll happily reopen and have a look but for now I'd suggest remove gems one at a time until the console command runs without that warning.

@panaak
Copy link

panaak commented Oct 31, 2016

ok, looks like draftsman gem is the culprit here, warning goes away when i remove it from Gemfile.
i will open an issue there i guess.

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

6 participants