Try using 'bundle exec rake test' instead of just 'rake test'
Chirag http://sumeruonrails.com On Tue, Jul 5, 2011 at 10:12 AM, joanne ta <[email protected]> wrote: > > > On Tue, Jul 5, 2011 at 12:38 AM, joanne ta <[email protected]> wrote: > >> I did not have any test on my project. i just use bundle update rake >> and then, it gives me that error.. >> > > and I have 2 version of rake (0.9.2 / 0.8.7) > do you know anyway that i can switch back to 0.8.7 > >> >> >> plz help >> >> thanks >> >> >> On Tue, Jul 5, 2011 at 12:24 AM, Chirag Singhal <[email protected] >> > wrote: >> >>> Please include your test that is failing here. >>> Most probably the issue is that you are expecting a object somewhere in >>> the test, but it is nil instead. >>> >>> >>> Chirag >>> http://sumeruonrails.com >>> >>> >>> >>> On Tue, Jul 5, 2011 at 8:54 AM, Yennie <[email protected]> wrote: >>> >>>> Hi, >>>> >>>> I have an error when i use rake test, plz help >>>> >>>> akyen@ubuntu:~/Desktop/p$ rake test >>>> WARNING: Global access to Rake DSL methods is deprecated. Please >>>> include >>>> ... Rake::DSL into classes and modules which use the Rake DSL >>>> methods. >>>> WARNING: DSL method Pictographs::Application#task called at /usr/local/ >>>> lib/ruby/gems/1.9.1/gems/railties-3.0.7/lib/rails/application.rb: >>>> 215:in `initialize_tasks' >>>> /usr/local/lib/ruby/gems/1.9.1/gems/activesupport-3.0.7/lib/ >>>> active_support/whiny_nil.rb:48:in `method_missing': undefined method >>>> `should_not_be_valid' for nil:NilClass (NoMethodError) >>>> >>>> >>>> Thank you very much >>>> >>>> Yennie >>>> >>>> -- >>>> You received this message because you are subscribed to the Google >>>> Groups "Ruby on Rails: Talk" group. >>>> To post to this group, send email to [email protected]. >>>> To unsubscribe from this group, send email to >>>> [email protected]. >>>> For more options, visit this group at >>>> http://groups.google.com/group/rubyonrails-talk?hl=en. >>>> >>>> >>> -- >>> You received this message because you are subscribed to the Google Groups >>> "Ruby on Rails: Talk" group. >>> To post to this group, send email to [email protected]. >>> To unsubscribe from this group, send email to >>> [email protected]. >>> For more options, visit this group at >>> http://groups.google.com/group/rubyonrails-talk?hl=en. >>> >> >> > -- > You received this message because you are subscribed to the Google Groups > "Ruby on Rails: Talk" group. > To post to this group, send email to [email protected]. > To unsubscribe from this group, send email to > [email protected]. > For more options, visit this group at > http://groups.google.com/group/rubyonrails-talk?hl=en. > -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.

