Skip to content

Commit

Permalink
Fix irb_context in rails console
Browse files Browse the repository at this point in the history
Don’t require rspec_junit_formatter gem
It’s only needed when running tests (for circleci).
It messes with the console, when running `rails c` it causes this warning:
```
irb: warn: can't alias context from irb_context
```
This is related to rspec monkey_patching a `context` method on `Object` (rspec/rspec-rails#1645)
  • Loading branch information
n-b committed May 20, 2019
1 parent f69fa41 commit 7692535
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ group :development, :test do
gem 'mina', git: 'https://github.com/mina-deploy/mina.git', require: false # Deploy
gem 'pry-byebug'
gem 'rspec-rails'
gem 'rspec_junit_formatter'
gem 'rspec_junit_formatter', require: false
gem 'ruby-debug-ide', require: false
gem 'spring' # Spring speeds up development by keeping your application running in the background
gem 'spring-commands-rspec'
Expand Down

0 comments on commit 7692535

Please sign in to comment.