thoughtbot/shoulda

Annoying output w/ rails 3.2.8

myKingEdem opened this issue · 5 comments

Checkout rails issue #7328.

Link to Rails issue you opened: rails/rails#7328

Does the issue go away if you remove the Shoulda gem?

Yes.

Same problem here. It's a shoulda-context issue. There's no problem with shoulda-matchers alone.

From the issue:

After running bundle exec db:migrate, this output comes up:

/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:inmap!'
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:innon_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:inrun'
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:inrun_once'
from /home/rkcudjoe/.rvm/rubies/ruby-1.9.3-p194/lib/ruby/1.9.1/test/unit.rb:325:in `block in autorun'

This should be resolved in 3.3.2 due to a fix in shoulda-context.