Skip to content

Annoying output from test unit/ mini test #7328

Closed
rkcudjoe opened this Issue Aug 11, 2012 · 7 comments

2 participants

@rkcudjoe

I get this annoying output even though I'm not using test unit and I passed in --no-test-unit when I generated the app.

/home/rkcudjoe/.rvm/rubies/ruby-1.9.3-p194/lib/ruby/1.9.1/test/unit.rb:167:in block in non_options': file not found: db:migrate (ArgumentError)
from /home/rkcudjoe/.rvm/rubies/ruby-1.9.3-p194/lib/ruby/1.9.1/test/unit.rb:146:in
map!'
from /home/rkcudjoe/.rvm/rubies/ruby-1.9.3-p194/lib/ruby/1.9.1/test/unit.rb:146:in non_options'
from /home/rkcudjoe/.rvm/rubies/ruby-1.9.3-p194/lib/ruby/1.9.1/test/unit.rb:207:in
non_options'
from /home/rkcudjoe/.rvm/rubies/ruby-1.9.3-p194/lib/ruby/1.9.1/test/unit.rb:52:in process_args'
from /home/rkcudjoe/.rvm/rubies/ruby-1.9.3-p194/lib/ruby/1.9.1/minitest/unit.rb:891:in
_run'
from /home/rkcudjoe/.rvm/rubies/ruby-1.9.3-p194/lib/ruby/1.9.1/minitest/unit.rb:884:in run'
from /home/rkcudjoe/.rvm/rubies/ruby-1.9.3-p194/lib/ruby/1.9.1/test/unit.rb:21:in
run'
from /home/rkcudjoe/.rvm/rubies/ruby-1.9.3-p194/lib/ruby/1.9.1/test/unit.rb:326:in block (2 levels) in autorun'
from /home/rkcudjoe/.rvm/rubies/ruby-1.9.3-p194/lib/ruby/1.9.1/test/unit.rb:27:in
run_once'
from /home/rkcudjoe/.rvm/rubies/ruby-1.9.3-p194/lib/ruby/1.9.1/test/unit.rb:325:in `block in autorun'

@steveklabnik
Ruby on Rails member

... you get the output when you do what?

@rkcudjoe

The output I'm showing is from bundle exec rake db:migrate, something similar happened when I generated a controller as well.

@steveklabnik
Ruby on Rails member

Okay! Is this a fresh app, or are there other things going on?

@rkcudjoe

Fresh app, I'm working on it now.

@steveklabnik
Ruby on Rails member

I cannot reproduce this issue. I literally just reinstalled my rubies, gems, and everything (yay mountain lion!) and I get zero bad output.

Is there any way you can help me reproduce this?

@rkcudjoe

You are right, the problem is with the shoulda gem, I was only able to reproduce it when added shoulda. Thanks for your help.

@steveklabnik
Ruby on Rails member

Awesome! Thanks.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.