Open dima4p opened 10 years ago
After the gem is added to the Gemfile starting console gives the message
irb: warn: can't alias context from irb_context.
Gemfile at the moment
source 'https://rubygems.org' ruby '2.1.2' # Bundle edge Rails instead: gem 'rails', github: 'rails/rails' gem 'rails', '4.1.5' # Use postgresql as the database for Active Record gem 'pg' # assets # Use SCSS for stylesheets gem 'sass-rails', '~> 4.0.3' # Use Uglifier as compressor for JavaScript assets gem 'uglifier', '>= 1.3.0' gem 'compass-rails' gem 'fancy-buttons' # Use CoffeeScript for .js.coffee assets and views gem 'coffee-rails', '~> 4.0.0' # See https://github.com/sstephenson/execjs#readme for more supported runtimes gem 'therubyracer', platforms: :ruby # Use jquery as the JavaScript library gem 'jquery-rails' # Turbolinks makes following links in your web application faster. Read more: https://github.com/rails/turbolinks gem 'turbolinks' # auth gem 'authlogic' gem 'cancancan' # views # Build JSON APIs with ease. Read more: https://github.com/rails/jbuilder gem 'jbuilder', '~> 2.0' gem 'haml-rails' gem 'simple_form' gem 'wice_grid' # Spring speeds up development by keeping your application running in the background. Read more: https://github.com/rails/spring gem 'spring', group: :development group :development do # i18n gem 'active_record_model_and_rspec_enhanced_templates' gem 'advanced_haml_scaffold_generator' gem 'factory_girl_fixtures_template' gem 'i18n_scaffold_controller_template' gem 'i18n_scaffold_generator' gem 'i18n_yaml_sorter', require: false gem 'jbuilder_rspec_generator' gem 'rspec_rails_scaffold_templates' gem 'translations_sync' # docs # bundle exec rake doc:rails generates the API under doc/api. gem 'sdoc', '~> 0.4.0', group: :doc end group :test, :development do gem 'factory_girl_rails' gem 'guard' gem 'guard-rspec' gem 'quiet_assets' gem 'rspec-activemodel-mocks' gem 'rspec-rails' gem 'zeus', require: false # Metrics gem 'rubocop', require: false gem 'brakeman', require: false end group :test do gem 'capybara' gem 'database_cleaner' gem 'email_spec' gem 'poltergeist' gem 'shoulda-matchers' end
+1
Same here. I fixed it by removing this gem from the development group and use it in the test group only.
development
test
group :test do # .... gem 'rspec-activemodel-mocks' end
for me it was "guard-rspec"
After the gem is added to the Gemfile starting console gives the message
Gemfile at the moment