I started doing this:
$ RAILS_ENV=test script/console
>> load 'test/unit/models/example_test.rb'; r = Test::Unit::TestResult.new;
>> reload!; ExampleTest.new(:test_example1).run(r) { |c,v| }; pp results
and then just hit up arrow and run that same line again over and over in
script/console. That way I can make changes to the test and app code,
and don't have to wait for rails startup each time.
Does that make sense to others? I'm a missing something that will make
this a bad way to run a test?
--
Posted via http://www.ruby-forum.com/.
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---