-
-
Save eccyan/2054590 to your computer and use it in GitHub Desktop.
Ruby 1.9.3p125 Rails 3.2.2 Rake 0.9.2.2 break db:migrate, assets:precompile and other task
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ rake db:migrate --trace | |
** Invoke db:migrate (first_time) | |
** Invoke environment (first_time) | |
** Execute environment | |
** Invoke db:load_config (first_time) | |
** Invoke rails_env (first_time) | |
** Execute rails_env | |
** Execute db:load_config | |
** Execute db:migrate | |
** Invoke db:_dump (first_time) | |
** Execute db:_dump | |
** Invoke db:schema:dump (first_time) | |
** Invoke environment | |
** Invoke db:load_config | |
** Execute db:schema:dump | |
/home/sato/.rvm/rubies/ruby-1.9.3-p125/lib/ruby/1.9.1/test/unit.rb:167:in `block in non_options': file not found: db:migrate (ArgumentError) | |
from /home/sato/.rvm/rubies/ruby-1.9.3-p125/lib/ruby/1.9.1/test/unit.rb:146:in `map!' | |
from /home/sato/.rvm/rubies/ruby-1.9.3-p125/lib/ruby/1.9.1/test/unit.rb:146:in `non_options' | |
from /home/sato/.rvm/rubies/ruby-1.9.3-p125/lib/ruby/1.9.1/test/unit.rb:207:in `non_options' | |
from /home/sato/.rvm/rubies/ruby-1.9.3-p125/lib/ruby/1.9.1/test/unit.rb:52:in `process_args' | |
from /home/sato/.rvm/rubies/ruby-1.9.3-p125/lib/ruby/1.9.1/minitest/unit.rb:891:in `_run' | |
from /home/sato/.rvm/rubies/ruby-1.9.3-p125/lib/ruby/1.9.1/minitest/unit.rb:884:in `run' | |
from /home/sato/.rvm/rubies/ruby-1.9.3-p125/lib/ruby/1.9.1/test/unit.rb:21:in `run' | |
from /home/sato/.rvm/rubies/ruby-1.9.3-p125/lib/ruby/1.9.1/test/unit.rb:326:in `block (2 levels) in autorun' | |
from /home/sato/.rvm/rubies/ruby-1.9.3-p125/lib/ruby/1.9.1/test/unit.rb:27:in `run_once' | |
from /home/sato/.rvm/rubies/ruby-1.9.3-p125/lib/ruby/1.9.1/test/unit.rb:325:in `block in autorun' | |
$ rake assets:precompile --trace | |
** Invoke assets:precompile (first_time) | |
** Execute assets:precompile | |
/home/sato/.rvm/rubies/ruby-1.9.3-p125/bin/ruby /home/sato/.rvm/gems/ruby-1.9.3-p125@qlippy/bin/rake assets:precompile:all RAILS_ENV=production RAILS_GROUPS=assets --trace | |
** Invoke assets:precompile:all (first_time) | |
** Execute assets:precompile:all | |
** Invoke assets:precompile:primary (first_time) | |
** Invoke assets:environment (first_time) | |
** Execute assets:environment | |
** Invoke environment (first_time) | |
** Execute environment | |
** Invoke tmp:cache:clear (first_time) | |
** Execute tmp:cache:clear | |
** Execute assets:precompile:primary | |
** Invoke assets:precompile:nondigest (first_time) | |
** Invoke assets:environment (first_time) | |
** Execute assets:environment | |
** Invoke environment (first_time) | |
** Execute environment | |
** Invoke tmp:cache:clear (first_time) | |
** Execute tmp:cache:clear | |
** Execute assets:precompile:nondigest | |
/home/sato/.rvm/rubies/ruby-1.9.3-p125/lib/ruby/1.9.1/test/unit.rb:167:in `block in non_options': file not found: assets:precompile (ArgumentError) | |
from /home/sato/.rvm/rubies/ruby-1.9.3-p125/lib/ruby/1.9.1/test/unit.rb:146:in `map!' | |
from /home/sato/.rvm/rubies/ruby-1.9.3-p125/lib/ruby/1.9.1/test/unit.rb:146:in `non_options' | |
from /home/sato/.rvm/rubies/ruby-1.9.3-p125/lib/ruby/1.9.1/test/unit.rb:207:in `non_options' | |
from /home/sato/.rvm/rubies/ruby-1.9.3-p125/lib/ruby/1.9.1/test/unit.rb:52:in `process_args' | |
from /home/sato/.rvm/rubies/ruby-1.9.3-p125/lib/ruby/1.9.1/minitest/unit.rb:891:in `_run' | |
from /home/sato/.rvm/rubies/ruby-1.9.3-p125/lib/ruby/1.9.1/minitest/unit.rb:884:in `run' | |
from /home/sato/.rvm/rubies/ruby-1.9.3-p125/lib/ruby/1.9.1/test/unit.rb:21:in `run' | |
from /home/sato/.rvm/rubies/ruby-1.9.3-p125/lib/ruby/1.9.1/test/unit.rb:326:in `block (2 levels) in autorun' | |
from /home/sato/.rvm/rubies/ruby-1.9.3-p125/lib/ruby/1.9.1/test/unit.rb:27:in `run_once' | |
from /home/sato/.rvm/rubies/ruby-1.9.3-p125/lib/ruby/1.9.1/test/unit.rb:325:in `block in autorun' |
Nevermind, found a fix. thoughtbot/shoulda#207
Great !
Isn't it best to have groups in Gemfile and keep shoulda only under 'test'? This would avoid shoulda spoiling the assets:precomplie in other environments.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I'm getting the exact same error messages with ruby 1.9.3-p194. I don't suppose you figured this one out...?