1. 09 2月, 2014 1 次提交
  2. 16 11月, 2013 1 次提交
  3. 07 10月, 2013 1 次提交
    • F
      Just change ENV and restore it afterwards. · afd0a8ab
      Federico Ravasio 提交于
      Stubbing ENV[] is not safe outside MRI. At some point after the
      stubbing has occurred a backtrace is printed to the ActiveSupport
      warning log: there Rubinius accesses ENV['RBX_NOCOLOR'] to determine
      if it should print the backtrace with colors or not, causing the
      stub to fail. Other implementations might access ENV in a different
      way too, we just can't predict it.
      The only thing we can do here is to actually set the ENV with what
      we want and restore it afterwards.
      afd0a8ab
  4. 10 9月, 2013 2 次提交
  5. 08 9月, 2013 1 次提交
  6. 07 9月, 2013 1 次提交
  7. 27 8月, 2013 1 次提交
    • W
      Add config to method calls in fixtures. · 6223e206
      wangjohn 提交于
      Allows you to change your configuration for calls to
      `table_name_prefix`, `table_name_suffix`, and `pluralize_table_names`.
      The default configuration is still ActiveRecord::Base, but you are now
      able to change the configuration easily.
      6223e206
  8. 25 8月, 2013 1 次提交
    • W
      Removing instances of string class_names in fixtures. · bac384e8
      wangjohn 提交于
      Also, constantizing the default_fixture_model_name when it gets loaded
      in from the file. Later, when the class_name is passed to a new
      FixtureSet, a deprecation warning will occur if the class_name is a
      string.
      bac384e8
  9. 06 8月, 2013 1 次提交
  10. 02 7月, 2013 1 次提交
  11. 15 6月, 2013 1 次提交
    • Y
      fixture setup does not rely on `AR::Base.configurations`. · 6d10d64c
      Yves Senn 提交于
      As you can also configure your database connection using `ENV["DATABASE_URL"]`,
      the fixture setup can't reply on the `.configurations` Hash.
      
      As the fixtures are only loaded when ActiveRecord is actually used
      (`rails/test_help.rb`) it should be safe to drop the check for an existing configuration.
      6d10d64c
  12. 22 3月, 2013 1 次提交
  13. 10 3月, 2013 1 次提交
  14. 18 1月, 2013 2 次提交
  15. 08 10月, 2012 1 次提交
    • A
      Rename "Fixtures" class to "FixtureSet" · a94220b6
      Alexey Muranov 提交于
      Rename `ActiveRecord::Fixtures` class to `ActiveRecord::FixtureSet`.  Instances of this class normally hold a collection of fixtures (records) loaded either from a single YAML file, or from a file and a folder with the same name.  This change make the class name singular and makes the class easier to distinguish from the modules like `ActiveRecord::TestFixtures`, which operates on multiple fixture sets, or `DelegatingFixtures`, `::Fixtures`, etc., and from the class `ActiveRecord::Fixture`, which corresponds to a single fixture.
      a94220b6
  16. 27 4月, 2012 1 次提交
  17. 23 3月, 2012 1 次提交
  18. 12 2月, 2012 1 次提交
  19. 11 2月, 2012 1 次提交
  20. 26 1月, 2012 1 次提交
  21. 04 1月, 2012 2 次提交
  22. 30 12月, 2011 2 次提交
  23. 27 12月, 2011 1 次提交
  24. 25 12月, 2011 1 次提交
  25. 23 12月, 2011 1 次提交
  26. 22 12月, 2011 1 次提交
    • A
      Fix a fixtures test case with table prefix/suffix · adb917a0
      Alexey Muranov 提交于
      Make sure the table name of a model is reset in a test case after assigning ActiveRecord::Base.table_name_prefix and ActiveRecord::Base.table_name_suffix.  This was somebody else's test case, so an independent opinion on the change can be helpful.
      adb917a0
  27. 11 12月, 2011 1 次提交
  28. 10 10月, 2011 1 次提交
  29. 06 10月, 2011 1 次提交
  30. 02 9月, 2011 1 次提交
  31. 14 8月, 2011 1 次提交
    • J
      Quote these dates to prevent intermittent test failure. Suppose local time is... · 66e114cd
      Jon Leighton 提交于
      Quote these dates to prevent intermittent test failure. Suppose local time is 00:50 GMT+1. Without the quoting, the YAML parser would parse this as 00:50 UTC, into the local time of 01:50 GMT+1. Then, it would get written into the database in local time as 01:50. When it came back out the UTC date from the database and the UTC date of two weeks ago would be compared. The former would be 23:50, and the latter would be 00:50, so the two dates would differ, causing the assertion to fail. Quoting it prevents the YAML parser from getting involved.
      66e114cd
  32. 04 8月, 2011 1 次提交
    • J
      Quote these dates to prevent intermittent test failure. Suppose local time is... · f000d4e5
      Jon Leighton 提交于
      Quote these dates to prevent intermittent test failure. Suppose local time is 00:50 GMT+1. Without the quoting, the YAML parser would parse this as 00:50 UTC, into the local time of 01:50 GMT+1. Then, it would get written into the database in local time as 01:50. When it came back out the UTC date from the database and the UTC date of two weeks ago would be compared. The former would be 23:50, and the latter would be 00:50, so the two dates would differ, causing the assertion to fail. Quoting it prevents the YAML parser from getting involved.
      f000d4e5
  33. 08 7月, 2011 1 次提交
  34. 07 6月, 2011 1 次提交
  35. 05 6月, 2011 2 次提交