[Rake-devel] test only fails when run through rake

Jeremy Burks jeremy.burks at gmail.com
Mon Jul 31 18:29:45 EDT 2006


I have a TestTask setup to run my tests. However, one of my tests
unexpectedly fails with "<nil> is not true" when i run it through
rake. If i run the test file directly, it passes as expected.

at first, i thought this behavior was isolated to just the one test
but i changed the order the tests are run and that causes a different
test to fail when it should pass.

here are the contents of my Rakefile (i removed everything else to
narrow the scope of the problem):

require 'rubygems'
require 'rake/testtask'

task :default => :test

Rake::TestTask.new do |t|
  t.pattern = 'test/**/*_test.rb'
  t.verbose = true
  t.warning = false

Any ideas?


More information about the Rake-devel mailing list