1. 27 3月, 2014 1 次提交
  2. 26 3月, 2014 2 次提交
  3. 15 3月, 2014 1 次提交
  4. 03 5月, 2013 1 次提交
    • J
      Fix broken mysql test · 66982772
      Jon Leighton 提交于
      test_mysql_integer_not_null_defaults in test/cases/defaults_test.rb was
      failing. This test relies on the connection being in strict mode. By
      default a new connection is not in strict mode, but Active Record
      automatically places it in strict mode.
      
      ActiveSchemaTest overwrites the connection's #execute method in order to
      prevent SQL statements from actually being executed. One of the
      operations which is performed in ActiveSchema test is a #recreate_database.
      
      Since 2088bf27, recreate_database on
      mysql or mysql2 will trigger a reconnect.
      
      Due to the implementation of the hacking of #execute in
      ActiveSchemaTest, this reconnect would take place, but the connection
      would *not* be placed in strict mode because #execute had been
      overridden to prevent SQL queries hitting the database.
      
      Therefore, after ActiveSchemaTest, the connection would no longer be in
      strict mode, causing test_mysql_integer_not_null_defaults to fail.
      
      I don't think that the way that ActiveSchemaTest is implemented is
      particularly nice or clean, but I have taken steps to make its hacks
      more isolated - it now create a separate connection object which is
      thrown away after the test, and the hacks are applied on the singleton
      class of this object.
      66982772
  5. 28 3月, 2013 1 次提交
  6. 26 3月, 2013 2 次提交
  7. 24 3月, 2013 1 次提交
  8. 20 3月, 2013 1 次提交
  9. 02 1月, 2013 1 次提交
  10. 29 8月, 2011 1 次提交
  11. 07 6月, 2011 1 次提交
  12. 05 6月, 2011 1 次提交
    • J
      Refactor Active Record test connection setup. Please see the... · 253bb6b9
      Jon Leighton 提交于
      Refactor Active Record test connection setup. Please see the RUNNING_UNIT_TESTS file for details, but essentially you can now configure things in test/config.yml. You can also run tests directly via the command line, e.g. ruby path/to/test.rb (no rake needed, uses default db connection from test/config.yml). This will help us fix the CI by enabling us to isolate the different Rails versions to different databases.
      253bb6b9
  13. 02 8月, 2010 1 次提交
  14. 19 7月, 2010 1 次提交
  15. 26 6月, 2010 1 次提交
  16. 09 6月, 2010 1 次提交
  17. 19 5月, 2010 1 次提交
  18. 09 5月, 2010 1 次提交
  19. 08 5月, 2010 2 次提交
  20. 04 10月, 2008 1 次提交
  21. 22 5月, 2008 1 次提交
  22. 13 3月, 2008 1 次提交
  23. 22 1月, 2008 1 次提交
  24. 18 1月, 2008 1 次提交
  25. 05 1月, 2008 1 次提交
  26. 22 12月, 2007 1 次提交
  27. 21 10月, 2007 1 次提交
  28. 16 10月, 2007 1 次提交
  29. 26 5月, 2007 1 次提交
  30. 07 7月, 2006 1 次提交
  31. 06 7月, 2006 1 次提交
  32. 05 7月, 2006 1 次提交
  33. 10 3月, 2005 1 次提交