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

Fix for "irb: warn: can't alias context from irb_context." error #78

Closed
willkoehler opened this issue Jun 3, 2015 · 2 comments
Closed
Labels
outdated Inactive - Outdated

Comments

@willkoehler
Copy link

When I use fuubar in a Rails project by including fuubar in my Gemfile:

gem 'fuubar'

I get a warning "irb: warn: can't alias context from irb_context." when I run bundle exec rails c

Sapphire:cms will$ bundle exec rails c
Loading development environment (Rails 4.2.1)
irb: warn: can't alias context from irb_context.
irb(main):001:0>

I believe this started after upgrading to RSpec 3. It's similar to this issue in PaperTrail paper-trail-gem/paper_trail#381

This could be fixed by removing the first line:

require 'rspec'

from fuubar.rb

A work-around until this fix is applied is to change the fuubar gem line to

gem 'fuubar', :require => false

I just realized this can also be fixed by putting the fuubar gem line in the test group

group :test do
  gem 'fuubar'
end
@jfelchner
Copy link
Collaborator

Which is where it should be :) Glad you got it straight!

@github-actions
Copy link

This issue has been closed automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

@github-actions github-actions bot added the outdated Inactive - Outdated label Dec 28, 2020
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Dec 28, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
outdated Inactive - Outdated
Development

No branches or pull requests

2 participants