mysql and unit tests

Chris

Aside from Al's solution to your problem..

  > def test_create
  > assert_equal 'henry-test', @result.module_name
  > assert_equal "11:24", @result.build_status_since
  > assert_equal '10:00', @result.last_failure
  > end

If you really need tests that fine-grained, you should not hesitate to
modify the models to make your tests easier to write and read:

Example:

  class User < ActiveRecord::Base
     def test_s <<------ ADD THIS METHOD
       "#{name} - #{login} - #{email}"
     end
     ...
  end

=> you can now write assertions like

  assert_equal "John Doe - jdoe - john.doe@gmail.com", user.test_s

Alain