search for: test_example1

Displaying 1 result from an estimated 1 matches for "test_example1".

Did you mean: test_examples
2009 Jul 08
7
running a unit test over and over in script/console
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 someth...