I loaded new rails onto my system and now when i runt the test i am getting the below exception. Please advise
~/railsprojects/my_blog (master) ∴ rake test
MiniTest::Unit::TestCase is now Minitest::Test. From /Users/pranavaswaroop/.rvm/rubies/ruby-2.1.1/lib/ruby/2.1.0/test/unit/testcase.rb:8:in `<module:Unit>'
rake aborted!
MiniTest v5.3.0 is out of date.
`gem install minitest` and add `gem 'minitest' to you test helper.
/Users/pranavaswaroop/.rvm/gems/ruby-2.1.1/gems/turn-0.9.6/lib/turn/minitest.rb:22:in `<top (required)>'
/Users/pranavaswaroop/.rvm/gems/ruby-2.1.1/gems/turn-0.9.6/lib/turn.rb:13:in `require'
/Users/pranavaswaroop/.rvm/gems/ruby-2.1.1/gems/turn-0.9.6/lib/turn.rb:13:in `<top (required)>'
/Users/pranavaswaroop/.rvm/gems/ruby-2.1.1/gems/bundler-1.5.3/lib/bundler/runtime.rb:76:in `require'
/Users/pranavaswaroop/.rvm/gems/ruby-2.1.1/gems/bundler-1.5.3/lib/bundler/runtime.rb:76:in `block (2 levels) in require'
/Users/pranavaswaroop/.rvm/gems/ruby-2.1.1/gems/bundler-1.5.3/lib/bundler/runtime.rb:72:in `each'
/Users/pranavaswaroop/.rvm/gems/ruby-2.1.1/gems/bundler-1.5.3/lib/bundler/runtime.rb:72:in `block in require'
/Users/pranavaswaroop/.rvm/gems/ruby-2.1.1/gems/bundler-1.5.3/lib/bundler/runtime.rb:61:in `each'
/Users/pranavaswaroop/.rvm/gems/ruby-2.1.1/gems/bundler-1.5.3/lib/bundler/runtime.rb:61:in `require'
/Users/pranavaswaroop/.rvm/gems/ruby-2.1.1/gems/bundler-1.5.3/lib/bundler.rb:131:in `require'
/Users/pranavaswaroop/railsprojects/my_blog/config/application.rb:7:in `<top (required)>'
/Users/pranavaswaroop/railsprojects/my_blog/Rakefile:4:in `<top (required)>'
(See full trace by running task with --trace)
~/railsprojects/my_blog (master) ∴
I were using turn gem, problem solved by removing it.
Related
I am newbie with Rails and here is my problem. I setup a new rails program named freelancer02 and in the file database.yml I saw the database : freelancer02_development and database : freelancer02_test
So I think, I could run this command to setup a new database
rails db:setup
But it gave me this error
rails aborted!
LoadError: incompatible library version - /Users/anhbui/.gem/ruby/3.1.2/gems/pg-1.4.5/lib/pg_ext.bundle
/Users/xxx/.gem/ruby/3.1.2/gems/bootsnap-1.15.0/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:32:in `require'
/Users/xxx/.gem/ruby/3.1.2/gems/bootsnap-1.15.0/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:32:in `require'
/Users/xxx/.gem/ruby/3.1.2/gems/pg-1.4.5/lib/pg.rb:49:in `block in <module:PG>'
/Users/xxx/.gem/ruby/3.1.2/gems/pg-1.4.5/lib/pg.rb:37:in `block in <module:PG>'
/Users/xxx/.gem/ruby/3.1.2/gems/pg-1.4.5/lib/pg.rb:42:in `<module:PG>'
/Users/xxx/.gem/ruby/3.1.2/gems/pg-1.4.5/lib/pg.rb:6:in `<main>'
/Users/xxx/.gem/ruby/3.1.2/gems/bootsnap-1.15.0/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:32:in `require'
/Users/xxx/.gem/ruby/3.1.2/gems/bootsnap-1.15.0/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:32:in `require'
/Users/xxx/.gem/ruby/3.1.2/gems/bundler-2.3.26/lib/bundler/runtime.rb:60:in `block (2 levels) in require'
/Users/xxx/.gem/ruby/3.1.2/gems/bundler-2.3.26/lib/bundler/runtime.rb:55:in `each'
/Users/xxx/.gem/ruby/3.1.2/gems/bundler-2.3.26/lib/bundler/runtime.rb:55:in `block in require'
/Users/xxx/.gem/ruby/3.1.2/gems/bundler-2.3.26/lib/bundler/runtime.rb:44:in `each'
/Users/xxx/.gem/ruby/3.1.2/gems/bundler-2.3.26/lib/bundler/runtime.rb:44:in `require'
/Users/xxx/.gem/ruby/3.1.2/gems/bundler-2.3.26/lib/bundler.rb:186:in `require'
/Users/xxx/Desktop/Rails/freelancer02/config/application.rb:7:in `<main>'
/Users/xxx/Desktop/Rails/freelancer02/Rakefile:4:in `require_relative'
/Users/xxx/Desktop/Rails/freelancer02/Rakefile:4:in `<main>'
/Users/xxx/.gem/ruby/3.1.2/gems/railties-7.0.4/lib/rails/commands/rake/rake_command.rb:20:in `block in perform'
/Users/xxx/.gem/ruby/3.1.2/gems/railties-7.0.4/lib/rails/commands/rake/rake_command.rb:18:in `perform'
/Users/xxx/.gem/ruby/3.1.2/gems/railties-7.0.4/lib/rails/command.rb:51:in `invoke'
/Users/xxx/.gem/ruby/3.1.2/gems/railties-7.0.4/lib/rails/commands.rb:18:in `<main>'
/Users/xxx/.gem/ruby/3.1.2/gems/bootsnap-1.15.0/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:32:in `require'
/Users/xxx/.gem/ruby/3.1.2/gems/bootsnap-1.15.0/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:32:in `require'
bin/rails:4:in `<main>'
(See full trace by running task with --trace)
I also ran this command
rake db:reset RAILS_ENV=test
but it still gave me the error above
When I check by ruby -v and rails -v, my version is ruby 3.1.2 and rails 7.0.4
Could you please give me some advices ? Thank you very much for your time.
I'm following Rails Tutorials by Michael Hartl (chapter 3). However, when I edit the Gemfile like he did and then run rake test, rails suggested me to put this line : config.web_console.development_only = false
in the application config file. I did that and run bundle exec rake test again, here's the error message:
/home/ys/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/ys/workspace/sample_app/config/application.rb to limit the frameworks that will be loaded.
/home/ys/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/activesupport-4.2.6/lib/active_support/dependencies.rb:274:in `require': cannot load such file -- guard (LoadError)
from /home/ys/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/activesupport-4.2.6/lib/active_support/dependencies.rb:274:in `block in require'
from /home/ys/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/activesupport-4.2.6/lib/active_support/dependencies.rb:240:in `load_dependency'
from /home/ys/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/activesupport-4.2.6/lib/active_support/dependencies.rb:274:in `require'
from /home/ys/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/guard-minitest-2.4.4/lib/minitest/guard_minitest_plugin.rb:4:in `<top (required)>'
from /home/ys/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/activesupport-4.2.6/lib/active_support/dependencies.rb:274:in `require'
from /home/ys/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/activesupport-4.2.6/lib/active_support/dependencies.rb:274:in `block in require'
from /home/ys/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/activesupport-4.2.6/lib/active_support/dependencies.rb:240:in `load_dependency'
from /home/ys/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/activesupport-4.2.6/lib/active_support/dependencies.rb:274:in `require'
from /home/ys/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/minitest-5.8.4/lib/minitest.rb:91:in `block in load_plugins'
from /home/ys/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/minitest-5.8.4/lib/minitest.rb:85:in `each'
from /home/ys/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/minitest-5.8.4/lib/minitest.rb:85:in `load_plugins'
from /home/ys/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/minitest-5.8.4/lib/minitest.rb:114:in `run'
from /home/ys/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/minitest-5.8.4/lib/minitest.rb:56:in `block in autorun'
I then proceeded to rake db:migrate, then run rake test again:
Running via Spring preloader in process 15638
/home/ys/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/activesupport-4.2.6/lib/active_support/dependencies.rb:274:in `require': cannot load such file -- guard (LoadError)
from /home/ys/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/activesupport-4.2.6/lib/active_support/dependencies.rb:274:in `block in require'
from /home/ys/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/activesupport-4.2.6/lib/active_support/dependencies.rb:240:in `load_dependency'
from /home/ys/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/activesupport-4.2.6/lib/active_support/dependencies.rb:274:in `require'
from /home/ys/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/guard-minitest-2.4.4/lib/minitest/guard_minitest_plugin.rb:4:in `<top (required)>'
from /home/ys/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/activesupport-4.2.6/lib/active_support/dependencies.rb:274:in `require'
from /home/ys/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/activesupport-4.2.6/lib/active_support/dependencies.rb:274:in `block in require'
from /home/ys/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/activesupport-4.2.6/lib/active_support/dependencies.rb:240:in `load_dependency'
from /home/ys/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/activesupport-4.2.6/lib/active_support/dependencies.rb:274:in `require'
from /home/ys/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/minitest-5.8.4/lib/minitest.rb:91:in `block in load_plugins'
from /home/ys/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/minitest-5.8.4/lib/minitest.rb:85:in `each'
from /home/ys/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/minitest-5.8.4/lib/minitest.rb:85:in `load_plugins'
from /home/ys/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/minitest-5.8.4/lib/minitest.rb:114:in `run'
from /home/ys/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/minitest-5.8.4/lib/minitest.rb:56:in `block in autorun'
All I can guess is that there is something wrong with Ruby because I upgraded from 2.3.0 to 2.3.1 the other day as rails console complained about buggy, old version when I run bundle install.
So, How to fix this?
https://github.com/guard/guard-minitest
Add the guard gem to your gem file.
gem 'guard'
Looks like this might work:
1) Just remove guard-spring from your Gemfile and Guardfile.
2) Then upgrade guard-rspec (run bundle update guard-rspec)
3) Setup
guard-rspec to use spring (see this:
https://github.com/guard/guard-rspec#options)
From: https://github.com/guard/guard/issues/734
So when I try to fire up my server using rails s I get
/usr/local/rvm/gems/ruby-2.0.0-p481#railstutorial_rails_4_0/gems/sqlite3-1.3.8/lib/sqlite3.rb:6:in `require': cannot load such file -- sqlite3/sqlite3_native (LoadError)
from /usr/local/rvm/gems/ruby-2.0.0-p481#railstutorial_rails_4_0/gems/sqlite3-1.3.8/lib/sqlite3.rb:6:in `rescue in <top (required)>'
from /usr/local/rvm/gems/ruby-2.0.0-p481#railstutorial_rails_4_0/gems/sqlite3-1.3.8/lib/sqlite3.rb:2:in `<top (required)>'
from /usr/local/rvm/gems/ruby-2.0.0-p481#global/gems/bundler-1.6.2/lib/bundler/runtime.rb:76:in `require'
from /usr/local/rvm/gems/ruby-2.0.0-p481#global/gems/bundler-1.6.2/lib/bundler/runtime.rb:76:in `block (2 levels) in require'
from /usr/local/rvm/gems/ruby-2.0.0-p481#global/gems/bundler-1.6.2/lib/bundler/runtime.rb:72:in `each'
from /usr/local/rvm/gems/ruby-2.0.0-p481#global/gems/bundler-1.6.2/lib/bundler/runtime.rb:72:in `block in require'
from /usr/local/rvm/gems/ruby-2.0.0-p481#global/gems/bundler-1.6.2/lib/bundler/runtime.rb:61:in `each'
from /usr/local/rvm/gems/ruby-2.0.0-p481#global/gems/bundler-1.6.2/lib/bundler/runtime.rb:61:in `require'
from /usr/local/rvm/gems/ruby-2.0.0-p481#global/gems/bundler-1.6.2/lib/bundler.rb:132:in `require'
from /Users/idrisk/rails_projects/first_app/config/application.rb:7:in `<top (required)>'
from /usr/local/rvm/gems/ruby-2.0.0-p481#railstutorial_rails_4_0/gems/railties-4.0.5/lib/rails/commands.rb:74:in `require'
from /usr/local/rvm/gems/ruby-2.0.0-p481#railstutorial_rails_4_0/gems/railties-4.0.5/lib/rails/commands.rb:74:in `block in <top (required)>'
from /usr/local/rvm/gems/ruby-2.0.0-p481#railstutorial_rails_4_0/gems/railties-4.0.5/lib/rails/commands.rb:71:in `tap'
from /usr/local/rvm/gems/ruby-2.0.0-p481#railstutorial_rails_4_0/gems/railties-4.0.5/lib/rails/commands.rb:71:in `<top (required)>'
from bin/rails:4:in `require'
from bin/rails:4:in `<main>'
I've tried using sudo also, but then I get
/usr/local/rvm/rubies/ruby-2.0.0-p481/lib/ruby/site_ruby/2.0.0/rubygems/dependency.rb:247:in `to_specs': Could not find railties (>= 0) amongst [bundler-1.6.2, bundler-unload-1.0.2, executable-hooks-1.3.1, gem-wrappers-1.2.4, rubygems-bundler-1.4.3, rvm-1.11.3.9] (Gem::LoadError)
from /usr/local/rvm/rubies/ruby-2.0.0-p481/lib/ruby/site_ruby/2.0.0/rubygems/dependency.rb:256:in `to_spec'
from /usr/local/rvm/rubies/ruby-2.0.0-p481/lib/ruby/site_ruby/2.0.0/rubygems.rb:1231:in `gem'
from /usr/local/rvm/gems/ruby-2.0.0-p481#railstutorial_rails_4_0/bin/rails:18:in `<main>'
from /usr/local/rvm/gems/ruby-2.0.0-p481#railstutorial_rails_4_0/bin/ruby_executable_hooks:15:in `eval'
from /usr/local/rvm/gems/ruby-2.0.0-p481#railstutorial_rails_4_0/bin/ruby_executable_hooks:15:in `<main>'
I'm not really sure what this means. I've tried restarting and things in that sort of nature. But nothing seemed to work. Ideas?
Try updating Ruby and Rails with RVM - RVM is a command-line tool which allows you to easily install, manage, and work with multiple ruby environments from interpreters to sets of gems.
Here is the website: https://rvm.io/
when I have typed command rake db:create, following errors were displayed on terminal
rake aborted!
cannot load such file -- active_support/core_ext/class/inheritable_attributes
/home/shashikant/.rvm/gems/ruby-1.9.3-p385/gems/activesupport-3.2.11/lib/active_support/dependencies.rb:251:in `require'
/home/shashikant/.rvm/gems/ruby-1.9.3-p385/gems/activesupport-3.2.11/lib/active_support/dependencies.rb:251:in `block in require'
/home/shashikant/.rvm/gems/ruby-1.9.3-p385/gems/activesupport-3.2.11/lib/active_support/dependencies.rb:236:in `load_dependency'
/home/shashikant/.rvm/gems/ruby-1.9.3-p385/gems/activesupport-3.2.11/lib/active_support/dependencies.rb:251:in `require'
/home/shashikant/.rvm/gems/ruby-1.9.3-p385/gems/supermodel-0.1.4/lib/supermodel.rb:5:in `<top (required)>'
/home/shashikant/.rvm/gems/ruby-1.9.3-p385#global/gems/bundler-1.2.3/lib/bundler/runtime.rb:68:in `require'
/home/shashikant/.rvm/gems/ruby-1.9.3-p385#global/gems/bundler-1.2.3/lib/bundler/runtime.rb:68:in `block (2 levels) in require'
/home/shashikant/.rvm/gems/ruby-1.9.3-p385#global/gems/bundler-1.2.3/lib/bundler/runtime.rb:66:in `each'
/home/shashikant/.rvm/gems/ruby-1.9.3-p385#global/gems/bundler-1.2.3/lib/bundler/runtime.rb:66:in `block in require'
/home/shashikant/.rvm/gems/ruby-1.9.3-p385#global/gems/bundler-1.2.3/lib/bundler/runtime.rb:55:in `each'
/home/shashikant/.rvm/gems/ruby-1.9.3-p385#global/gems/bundler-1.2.3/lib/bundler/runtime.rb:55:in `require'
/home/shashikant/.rvm/gems/ruby-1.9.3-p385#global/gems/bundler-1.2.3/lib/bundler.rb:128:in `require'
/home/shashikant/railsproject/online_exams_system/config/application.rb:7:in `<top (required)>'
/home/shashikant/railsproject/online_exams_system/Rakefile:5:in `require'
/home/shashikant/railsproject/online_exams_system/Rakefile:5:in `<top (required)>'
/home/shashikant/.rvm/gems/ruby-1.9.3-p385/bin/ruby_noexec_wrapper:14:in `eval'
/home/shashikant/.rvm/gems/ruby-1.9.3-p385/bin/ruby_noexec_wrapper:14:in `<main>'
(See full trace by running task with --trace)
I got the answer just downloded the file "inheritable_attributes.rb" form github and other file name will be shown after u add the file in specified directory and run the command rake db:migrate
using ruby1.9.2 rails3.1.0
I am working from my netbook, so it is not my usual dev environment. I cloned a repo that I was working with on my desktop early this week. Now when I run rake test I get this error in the terminal.
^[[1;5C/home/work/.rvm/gems/ruby-1.9.2-p290#rails310/gems/rack-1.3.4/lib/rack/backports/uri/common_192.rb:53: warning: already initialized constant WFKV_
/home/work/.rvm/gems/ruby-1.9.2-p290#rails310/gems/turn-0.8.3/lib/turn/autorun/minitest.rb:14:in `<top (required)>': MiniTest v1.6.0 is out of date. (RuntimeError)
`gem install minitest` and add `gem 'minitest' to you test helper.
from /home/work/.rvm/gems/ruby-1.9.2-p290#rails310/gems/activesupport-3.1.0/lib/active_support/dependencies.rb:240:in `require'
from /home/work/.rvm/gems/ruby-1.9.2-p290#rails310/gems/activesupport-3.1.0/lib/active_support/dependencies.rb:240:in `block in require'
from /home/work/.rvm/gems/ruby-1.9.2-p290#rails310/gems/activesupport-3.1.0/lib/active_support/dependencies.rb:225:in `load_dependency'
from /home/work/.rvm/gems/ruby-1.9.2-p290#rails310/gems/activesupport-3.1.0/lib/active_support/dependencies.rb:240:in `require'
from /home/work/.rvm/gems/ruby-1.9.2-p290#rails310/gems/turn-0.8.3/lib/turn.rb:13:in `<top (required)>'
from /home/work/.rvm/gems/ruby-1.9.2-p290#rails310/gems/activesupport-3.1.0/lib/active_support/dependencies.rb:240:in `require'
from /home/work/.rvm/gems/ruby-1.9.2-p290#rails310/gems/activesupport-3.1.0/lib/active_support/dependencies.rb:240:in `block in require'
from /home/work/.rvm/gems/ruby-1.9.2-p290#rails310/gems/activesupport-3.1.0/lib/active_support/dependencies.rb:225:in `load_dependency'
from /home/work/.rvm/gems/ruby-1.9.2-p290#rails310/gems/activesupport-3.1.0/lib/active_support/dependencies.rb:240:in `require'
from /home/work/.rvm/gems/ruby-1.9.2-p290#rails310/gems/railties-3.1.0/lib/rails/test_help.rb:19:in `<top (required)>'
from /home/work/.rvm/gems/ruby-1.9.2-p290#rails310/gems/activesupport-3.1.0/lib/active_support/dependencies.rb:240:in `require'
from /home/work/.rvm/gems/ruby-1.9.2-p290#rails310/gems/activesupport-3.1.0/lib/active_support/dependencies.rb:240:in `block in require'
from /home/work/.rvm/gems/ruby-1.9.2-p290#rails310/gems/activesupport-3.1.0/lib/active_support/dependencies.rb:225:in `load_dependency'
from /home/work/.rvm/gems/ruby-1.9.2-p290#rails310/gems/activesupport-3.1.0/lib/active_support/dependencies.rb:240:in `require'
from /home/work/Desktop/sa_clubbing/test/test_helper.rb:3:in `<top (required)>'
from /home/work/Desktop/sa_clubbing/test/unit/blog_post_test.rb:1:in `require'
from /home/work/Desktop/sa_clubbing/test/unit/blog_post_test.rb:1:in `<top (required)>'
from /home/work/.rvm/gems/ruby-1.9.2-p290#global/gems/rake-0.9.2/lib/rake/rake_test_loader.rb:9:in `require'
from /home/work/.rvm/gems/ruby-1.9.2-p290#global/gems/rake-0.9.2/lib/rake/rake_test_loader.rb:9:in `block (2 levels) in <main>'
from /home/work/.rvm/gems/ruby-1.9.2-p290#global/gems/rake-0.9.2/lib/rake/rake_test_loader.rb:9:in `each'
from /home/work/.rvm/gems/ruby-1.9.2-p290#global/gems/rake-0.9.2/lib/rake/rake_test_loader.rb:9:in `block in <main>'
from /home/work/.rvm/gems/ruby-1.9.2-p290#global/gems/rake-0.9.2/lib/rake/rake_test_loader.rb:5:in `each'
from /home/work/.rvm/gems/ruby-1.9.2-p290#global/gems/rake-0.9.2/lib/rake/rake_test_loader.rb:5:in `<main>'
/home/work/.rvm/gems/ruby-1.9.2-p290#rails310/gems/rack-1.3.4/lib/rack/backports/uri/common_192.rb:53: warning: already initialized constant WFKV_
/home/work/.rvm/gems/ruby-1.9.2-p290#rails310/gems/turn-0.8.3/lib/turn/autorun/minitest.rb:14:in `<top (required)>': MiniTest v1.6.0 is out of date. (RuntimeError)
`gem install minitest` and add `gem 'minitest' to you test helper.
from /home/work/.rvm/gems/ruby-1.9.2-p290#rails310/gems/activesupport-3.1.0/lib/active_support/dependencies.rb:240:in `require'
from /home/work/.rvm/gems/ruby-1.9.2-p290#rails310/gems/activesupport-3.1.0/lib/active_support/dependencies.rb:240:in `block in require'
from /home/work/.rvm/gems/ruby-1.9.2-p290#rails310/gems/activesupport-3.1.0/lib/active_support/dependencies.rb:225:in `load_dependency'
from /home/work/.rvm/gems/ruby-1.9.2-p290#rails310/gems/activesupport-3.1.0/lib/active_support/dependencies.rb:240:in `require'
from /home/work/.rvm/gems/ruby-1.9.2-p290#rails310/gems/turn-0.8.3/lib/turn.rb:13:in `<top (required)>'
from /home/work/.rvm/gems/ruby-1.9.2-p290#rails310/gems/activesupport-3.1.0/lib/active_support/dependencies.rb:240:in `require'
from /home/work/.rvm/gems/ruby-1.9.2-p290#rails310/gems/activesupport-3.1.0/lib/active_support/dependencies.rb:240:in `block in require'
from /home/work/.rvm/gems/ruby-1.9.2-p290#rails310/gems/activesupport-3.1.0/lib/active_support/dependencies.rb:225:in `load_dependency'
from /home/work/.rvm/gems/ruby-1.9.2-p290#rails310/gems/activesupport-3.1.0/lib/active_support/dependencies.rb:240:in `require'
from /home/work/.rvm/gems/ruby-1.9.2-p290#rails310/gems/railties-3.1.0/lib/rails/test_help.rb:19:in `<top (required)>'
from /home/work/.rvm/gems/ruby-1.9.2-p290#rails310/gems/activesupport-3.1.0/lib/active_support/dependencies.rb:240:in `require'
from /home/work/.rvm/gems/ruby-1.9.2-p290#rails310/gems/activesupport-3.1.0/lib/active_support/dependencies.rb:240:in `block in require'
from /home/work/.rvm/gems/ruby-1.9.2-p290#rails310/gems/activesupport-3.1.0/lib/active_support/dependencies.rb:225:in `load_dependency'
from /home/work/.rvm/gems/ruby-1.9.2-p290#rails310/gems/activesupport-3.1.0/lib/active_support/dependencies.rb:240:in `require'
from /home/work/Desktop/sa_clubbing/test/test_helper.rb:3:in `<top (required)>'
from /home/work/Desktop/sa_clubbing/test/functional/landing_page_controller_test.rb:1:in `require'
from /home/work/Desktop/sa_clubbing/test/functional/landing_page_controller_test.rb:1:in `<top (required)>'
from /home/work/.rvm/gems/ruby-1.9.2-p290#global/gems/rake-0.9.2/lib/rake/rake_test_loader.rb:9:in `require'
from /home/work/.rvm/gems/ruby-1.9.2-p290#global/gems/rake-0.9.2/lib/rake/rake_test_loader.rb:9:in `block (2 levels) in <main>'
from /home/work/.rvm/gems/ruby-1.9.2-p290#global/gems/rake-0.9.2/lib/rake/rake_test_loader.rb:9:in `each'
from /home/work/.rvm/gems/ruby-1.9.2-p290#global/gems/rake-0.9.2/lib/rake/rake_test_loader.rb:9:in `block in <main>'
from /home/work/.rvm/gems/ruby-1.9.2-p290#global/gems/rake-0.9.2/lib/rake/rake_test_loader.rb:5:in `each'
from /home/work/.rvm/gems/ruby-1.9.2-p290#global/gems/rake-0.9.2/lib/rake/rake_test_loader.rb:5:in `<main>'
Errors running test:units, test:functionals!
I followed the instruction and did gem install minitest , but still get the same result. Anyone know what to do here?
I just checked my gem list and it says minitest version 2.6.2 is installed. I don't know why the error is saying MiniTest v1.6.0 is out of date I am not using that version
I fixed it in the following way:
add in your Gemfile following gem, Then run bundle install
group :test do
gem 'turn', '< 0.8.3'
end
bundle exec rake test
Having a .rvmrc file in the project's root directory is handy for automatically setting the correct ruby/gemset. Also make sure your Gemfile/Gemfile.lock are using the correct version.
Here is how to fix it...
go to the root of your aplication and type:
gem install minitest
Then go to your gemfile located in the root of your app and add
gem 'minitest' at the bottom of the file.