Test messages showing up on rake tasks


#1

Hello guys,

Recently an application started to print these nasty messaes everytime
I try to run a rake task:

=====
Loaded suite /usr/bin/rake
Started

Finished in 0.000235 seconds.

0 tests, 0 assertions, 0 failures, 0 errors

It’s as if something is calling the test runner. I’

Maurício Linhares
http://alinhavado.wordpress.com/ (pt-br) | http://blog.codevader.com/
(en)


#2

Hello guys,

Recently an application started to print these nasty messaes everytime
I try to run a rake task:

=====
Loaded suite /usr/bin/rake
Started

Finished in 0.000235 seconds.

0 tests, 0 assertions, 0 failures, 0 errors

It’s as if something is calling the test runner, but i’m not really
sure why or where.

I’m running rails 2.2.2 and RSpec 1.1.11.

Maurício Linhares
http://alinhavado.wordpress.com/ (pt-br) | http://blog.codevader.com/
(en)


#3

On Dec 23, 1:08 pm, “Maurício Linhares” removed_email_address@domain.invalid
wrote:

Hello guys,

Recently an application started to print these nasty messaes everytime
I try to run a rake task:

Some thing is requiring test/unit

Fred


#4

On Tue, Dec 23, 2008 at 10:59 AM, Frederick C.
removed_email_address@domain.invalid wrote:

Some thing is requiring test/unit

Is there any way to discover who’s doing it? Or any way to disable it?

Maurício Linhares
http://alinhavado.wordpress.com/ (pt-br) | http://blog.codevader.com/
(en)


#5

Well, solved it :slight_smile:

Here’s the deal for future searches, I’ve added a require method to my
environment.rb file (before rails boot require):

def require( file )
if file == ‘test/unit’
raise “do not require this shit”
else
super
end
end

And just found out where it was being required :slight_smile:

Thanks!

Maurício Linhares
http://alinhavado.wordpress.com/ (pt-br) | http://blog.codevader.com/
(en)

On Tue, Dec 23, 2008 at 11:07 AM, Maurício Linhares