简体   繁体   中英

Rake test suddenly stopped working

I have been working with my rails application and since today I have not been able to run rake test:units

I though maybe my Ruby installation is broken or something, so I tried creating a new application, created a new model quickly, wrote a couple of unit test and then ran them. Everything seems to be running fine with the new app.

Please check the error log generated here http://pastebin.com/jgNXpXE3

Seems there's a bug in your Product model. Do you have a call to validates without any parameters passed to it?

http://api.rubyonrails.org/classes/ActiveModel/Validations/ClassMethods.html#method-i-validates

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM