Welcome to the Treehouse Community
Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.
Looking to learn something new?
Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.
Start your free trialLavoisier Cornerstone
664 PointsMy First Test is Failing; Problem With Gemfile
My first test is failing. I tried commenting out :
gem 'web-console', '~> 2.0'
in the
group :development, :test do
but that didn't help, I got a different error, so I put it back. Below is the original. I also got a error Web Console error when I ran:
bin/rake db:migrate RAILS_ENV=test
// ♥ bin/rake spec
Running via Spring preloader in process 40597
[DEPRECATION] last_comment
is deprecated. Please use last_description
instead.
[DEPRECATION] last_comment
is deprecated. Please use last_description
instead.
[DEPRECATION] last_comment
is deprecated. Please use last_description
instead.
[DEPRECATION] last_comment
is deprecated. Please use last_description
instead.
[DEPRECATION] last_comment
is deprecated. Please use last_description
instead.
[DEPRECATION] last_comment
is deprecated. Please use last_description
instead.
[DEPRECATION] last_comment
is deprecated. Please use last_description
instead.
/Users/Vois/.rvm/rubies/ruby-2.2.2/bin/ruby -S rspec ./spec/controllers/todo_lists_controller_spec.rb ./spec/helpers/todo_lists_helper_spec.rb ./spec/models/todo_list_spec.rb ./spec/requests/todo_lists_spec.rb ./spec/routing/todo_lists_routing_spec.rb ./spec/views/todo_lists/edit.html.erb_spec.rb ./spec/views/todo_lists/index.html.erb_spec.rb ./spec/views/todo_lists/new.html.erb_spec.rb ./spec/views/todo_lists/show.html.erb_spec.rb
Web Console is activated in the test environment, which is
usually a mistake. To ensure it's only activated in development
mode, move it to the development group of your Gemfile:
gem 'web-console', group: :development
If you still want to run it the test environment (and know what you are doing), put this in your Rails application configuration:
config.web_console.development_only = false
/Users/Vois/.rvm/rubies/ruby-2.2.2/bin/ruby -S rspec ./spec/controllers/todo_lists_controller_spec.rb ./spec/helpers/todo_lists_helper_spec.rb ./spec/models/todo_list_spec.rb ./spec/requests/todo_lists_spec.rb ./spec/routing/todo_lists_routing_spec.rb ./spec/views/todo_lists/edit.html.erb_spec.rb ./spec/views/todo_lists/index.html.erb_spec.rb ./spec/views/todo_lists/new.html.erb_spec.rb ./spec/views/todo_lists/show.html.erb_spec.rb failed
1 Answer
Lisa Nguyen
22,731 PointsTry adding this line of code to your Gemfile -
gem 'web-console', '~> 2.0', group: :development