Ruby on Rails tutorial by Michael Hartl

135 views
Skip to first unread message

Ad Rienks

unread,
May 27, 2016, 3:59:59 AM5/27/16
to Ruby on Rails: Talk

Hello,

I am doing this tutorial, currently in Chapter 5. I am testing listing 5.26 but get the feeling that not all is set up like it should.
The message: RubyDep: WARNING: Your Ruby is: 2.3.0 (buggy). Recommendation: install 2.3.1.
a bit alarming.
Can someone help with tips our suggestions?

Thank you,
Ad

Norbert Melzer

unread,
May 27, 2016, 4:03:51 AM5/27/16
to Ruby on Rails: Talk
If you are able to, do an upgrade. If you can't just ignore the warning… In any case, it is not related to the remaining message you screenshotted instead of copy pasting… Just read along after the warning lines and take a closer look at the actual error, it gives you very good hints on how to proceed.

--
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email to rubyonrails-ta...@googlegroups.com.
To post to this group, send email to rubyonra...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/93f7e02e-62a3-4b33-9f1b-4c30436a7b7b%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Ad Rienks

unread,
May 27, 2016, 8:37:26 AM5/27/16
to Ruby on Rails: Talk


Op vrijdag 27 mei 2016 10:03:51 UTC+2 schreef Norbert Melzer:
If you are able to, do an upgrade. If you can't just ignore the warning… In any case, it is not related to the remaining message you screenshotted instead of copy pasting… Just read along after the warning lines and take a closer look at the actual error, it gives you very good hints on how to proceed.

Norbert,

Thank you; you are right that copy / pasting is better. I will paste the text here underneath.
What I see is "rake aborted!". I guess that is the real error.
But what to do? Shall I do 'rake db:migrate'? But in this chapter of the tutorial there is no database implemented; not yet! I don't understand it?
The funny thing is: the 'sample_app' application is running without problems, as far as I can see!

Here the pasted screen lines:
==========================================================================================
kwibus:~/workspace $ cd sample_app
kwibus:~/workspace/sample_app (filling-in-layout) $ bundle exec rake test
RubyDep: WARNING: Your Ruby is outdated/buggy. (To disable warnings, set RUBY_DEP_GEM_SILENCE_WARNINGS=1)
RubyDep: WARNING: Your Ruby is: 2.3.0 (buggy). Recommendation: install 2.3.1.
RubyDep: WARNING: Your Ruby is outdated/buggy. (To disable warnings, set RUBY_DEP_GEM_SILENCE_WARNINGS=1)
RubyDep: WARNING: Your Ruby is: 2.3.0 (buggy). Recommendation: install 2.3.1.
/home/ubuntu/workspace/sample_app/db/schema.rb doesn't exist yet. Run `rake db:migrate` to create it, then try again. If you do not intend to use a database, you should instead alter /home/ubuntu/workspace/sample_app/config/application.rb to limit the frameworks that will be loaded.
rake aborted!
NoMethodError: undefined method `use' for Minitest::Reporter:Class
/home/ubuntu/workspace/sample_app/test/test_helper.rb:5:in `<top (required)>'
/home/ubuntu/workspace/sample_app/test/controllers/static_pages_controller_test.rb:1:in `require'
/home/ubuntu/workspace/sample_app/test/controllers/static_pages_controller_test.rb:1:in `<top (required)>'
/usr/local/rvm/gems/ruby-2.3.0/gems/railties-4.2.2/lib/rails/test_unit/sub_test_task.rb:114:in `require'
/usr/local/rvm/gems/ruby-2.3.0/gems/railties-4.2.2/lib/rails/test_unit/sub_test_task.rb:114:in `block (3 levels) in define'
/usr/local/rvm/gems/ruby-2.3.0/gems/railties-4.2.2/lib/rails/test_unit/sub_test_task.rb:114:in `each'
/usr/local/rvm/gems/ruby-2.3.0/gems/railties-4.2.2/lib/rails/test_unit/sub_test_task.rb:114:in `block (2 levels) in define'
/usr/local/rvm/gems/ruby-2.3.0/gems/railties-4.2.2/lib/rails/test_unit/sub_test_task.rb:113:in `each'
/usr/local/rvm/gems/ruby-2.3.0/gems/railties-4.2.2/lib/rails/test_unit/sub_test_task.rb:113:in `block in define'
/usr/local/rvm/gems/ruby-2.3.0/gems/railties-4.2.2/lib/rails/test_unit/sub_test_task.rb:20:in `invoke_rake_task'
/usr/local/rvm/gems/ruby-2.3.0/gems/railties-4.2.2/lib/rails/test_unit/testing.rake:8:in `block in <top (required)>'
/usr/local/rvm/gems/ruby-2.3.0/gems/bundler-1.12.2/lib/bundler/cli/exec.rb:63:in `load'
/usr/local/rvm/gems/ruby-2.3.0/gems/bundler-1.12.2/lib/bundler/cli/exec.rb:63:in `kernel_load'
/usr/local/rvm/gems/ruby-2.3.0/gems/bundler-1.12.2/lib/bundler/cli/exec.rb:24:in `run'
/usr/local/rvm/gems/ruby-2.3.0/gems/bundler-1.12.2/lib/bundler/cli.rb:304:in `exec'
/usr/local/rvm/gems/ruby-2.3.0/gems/bundler-1.12.2/lib/bundler/vendor/thor/lib/thor/command.rb:27:in `run'
/usr/local/rvm/gems/ruby-2.3.0/gems/bundler-1.12.2/lib/bundler/vendor/thor/lib/thor/invocation.rb:126:in `invoke_command'
/usr/local/rvm/gems/ruby-2.3.0/gems/bundler-1.12.2/lib/bundler/vendor/thor/lib/thor.rb:359:in `dispatch'
/usr/local/rvm/gems/ruby-2.3.0/gems/bundler-1.12.2/lib/bundler/vendor/thor/lib/thor/base.rb:440:in `start'
/usr/local/rvm/gems/ruby-2.3.0/gems/bundler-1.12.2/lib/bundler/cli.rb:11:in `start'
/usr/local/rvm/gems/ruby-2.3.0/gems/bundler-1.12.2/exe/bundle:27:in `block in <top (required)>'
/usr/local/rvm/gems/ruby-2.3.0/gems/bundler-1.12.2/lib/bundler/friendly_errors.rb:98:in `with_friendly_errors'
/usr/local/rvm/gems/ruby-2.3.0/gems/bundler-1.12.2/exe/bundle:19:in `<top (required)>'
/usr/local/rvm/gems/ruby-2.3.0/bin/bundle:23:in `load'
/usr/local/rvm/gems/ruby-2.3.0/bin/bundle:23:in `<main>'
/usr/local/rvm/gems/ruby-2.3.0/bin/ruby_executable_hooks:15:in `eval'
/usr/local/rvm/gems/ruby-2.3.0/bin/ruby_executable_hooks:15:in `<main>'
Tasks: TOP => test:run
(See full trace by running task with --trace)

Ad Rienks

unread,
May 27, 2016, 8:58:55 AM5/27/16
to Ruby on Rails: Talk
Norbert,

Thanks again!
I walked through the tutorial, rereading chapter 3, and there I found my mistake, in this line: Minitest::Reporters.use!

After correction, the test ran without errors!
Reply all
Reply to author
Forward
0 new messages