1. 07 10月, 2014 1 次提交
  2. 23 9月, 2014 2 次提交
  3. 28 8月, 2014 1 次提交
  4. 18 7月, 2014 1 次提交
  5. 11 6月, 2014 1 次提交
  6. 02 4月, 2014 1 次提交
    • M
      Revise 'sqlite3:' URL handling for smoother upgrades · f846828d
      Matthew Draper 提交于
      Restore the 4.0 behaviour for 'sqlite3:///', but deprecate it. We'll
      change to the absolute-path interpretation in 4.2.
      
      The current "correct" spellings for in-memory, relative, and absolute
      URLs, respectively, are:
      
          sqlite3::memory:
          sqlite3:relative/path
          sqlite3:/full/path
      
      Substantially reverses/defers fbb79b51.
      Uncovered by @guilleiguaran while investigating #14495, though that
      sounds like a different issue.
      f846828d
  7. 16 3月, 2014 1 次提交
    • E
      Extend fixture label replacement to allow string interpolation · f47421f2
      Eric Steele 提交于
      Allows fixtures to use their $LABEL as part of a string instead
      of limiting use to the entire value.
      
          mark:
            first_name: $LABEL
            username: $LABEL1973
            email: $LABEL@$LABELmail.com
      
          users(:mark).first_name # => mark
          users(:mark).username   # => mark1973
          users(:mark).email      # => mark@markmail.com
      f47421f2
  8. 09 2月, 2014 1 次提交
  9. 08 1月, 2014 1 次提交
  10. 16 11月, 2013 1 次提交
  11. 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
  12. 10 9月, 2013 2 次提交
  13. 08 9月, 2013 1 次提交
  14. 07 9月, 2013 1 次提交
  15. 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
  16. 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
  17. 06 8月, 2013 1 次提交
  18. 02 7月, 2013 1 次提交
  19. 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
  20. 22 3月, 2013 1 次提交
  21. 10 3月, 2013 1 次提交
  22. 18 1月, 2013 2 次提交
  23. 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
  24. 27 4月, 2012 1 次提交
  25. 23 3月, 2012 1 次提交
  26. 12 2月, 2012 1 次提交
  27. 11 2月, 2012 1 次提交
  28. 26 1月, 2012 1 次提交
  29. 04 1月, 2012 2 次提交
  30. 30 12月, 2011 2 次提交
  31. 27 12月, 2011 1 次提交
  32. 25 12月, 2011 1 次提交
  33. 23 12月, 2011 1 次提交
  34. 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
  35. 11 12月, 2011 1 次提交