I had the same problem here and following miga's advice I changed Test::Unit::TestCase to ActiveSupport::TestCase in test_helper.rb (in unit tests such modification has been done by Mr. Shin), and voilá! My tests work!
On 10 ago, 12:24, JoshLucas <[email protected]> wrote: > I tried doing what you said and I am still having the same problem. > > On Jul 20, 5:35 am, miga <[email protected]> wrote: > > > On Jul 15, 7:03 pm, JoshLucas <[email protected]> wrote: > > > > invalid meta-code syntax: /C:\Documents and Settings\Owner\My Documents > > > \NetBeansProjects\rails_testing\solutions.nb6.1\exercise0\rubyweblog > > > \Rakefile/ > > > After reading more in depth the log, I see you use the Netbeans 6.1 > > solutions from the zip file. The other folder solution (solutions) is > > more suited to Netbeans 6.7. Once you switch to rails 2.3.2, the only > > change to make in the test (though I think it supports also the old > > syntax) is to change: > > > def should_whatever > > whichever > > end > > > into: > > > def "should whatever" do > > whichever > > end > > > and also the !post.valid? into post.invalid? > > > The only think which does not work, at least for me, is to use jruby > > 1.3.1, all tests fail miserabily because the tests insist in loading > > jruby from within Netbeans (hence jruby 1.2). --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "ruby-on-rails-programming-with-passion" group. To unsubscribe from this group, send email to ruby-on-rails-programming-with-passion+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/ruby-on-rails-programming-with-passion?hl=en?hl=en -~----------~----~----~----~------~----~------~--~---
