1. 01 2月, 2015 2 次提交
  2. 31 1月, 2015 1 次提交
  3. 15 1月, 2015 1 次提交
    • V
      Fixes #18492 · 4ae59ebe
      Vipul A M 提交于
      - Add check for not deleting previously created fixtures, to overcome sti fixtures from multiple files
      - Added fixtures and fixtures test to verify the same
      
      - Fixed wrong fixtures duplicating data insertion in same table
      4ae59ebe
  4. 06 1月, 2015 1 次提交
  5. 05 1月, 2015 1 次提交
    • M
      Fix TypeError in Fixture creation · 7b910917
      Matt Hogan 提交于
      Ruby 4.2 started doing `value.gsub('$LABEL', label)` for fixture label interpolation, but you can have have valid YAML where `label` isn't a String. 
      
      For example:
      
      ```YAML
      0:
        name: John
        email: johndoe@gmail.com
      1:
        name: Jane
        email: janedoe@gmail.com
      ```
      
      This YAML will create a label that is a Fixnum, causing `TypeError: no implicit conversion of Fixnum into String.`
      7b910917
  6. 04 1月, 2015 1 次提交
  7. 29 11月, 2014 1 次提交
  8. 23 11月, 2014 1 次提交
  9. 21 11月, 2014 1 次提交
  10. 03 11月, 2014 1 次提交
  11. 07 10月, 2014 1 次提交
  12. 29 9月, 2014 1 次提交
  13. 23 9月, 2014 1 次提交
  14. 19 9月, 2014 1 次提交
  15. 04 9月, 2014 1 次提交
  16. 29 8月, 2014 1 次提交
  17. 18 7月, 2014 1 次提交
  18. 16 7月, 2014 1 次提交
  19. 14 6月, 2014 2 次提交
  20. 11 6月, 2014 2 次提交
  21. 05 6月, 2014 1 次提交
  22. 03 6月, 2014 1 次提交
    • E
      fix polymorphic? method and reuse it · 46acd8b8
      eileencodes 提交于
      Fix polymorphic to check for `options[:polymorphic]` instead of
      `options.key? :polymorphic` and then reuse the method `polymorphic?`
      method instead of constantly checking the same `options[:polymorphic]`.
      46acd8b8
  23. 02 6月, 2014 2 次提交
  24. 25 5月, 2014 1 次提交
  25. 11 4月, 2014 1 次提交
  26. 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
  27. 23 2月, 2014 1 次提交
  28. 17 1月, 2014 1 次提交
  29. 10 1月, 2014 1 次提交
  30. 08 1月, 2014 1 次提交
  31. 03 12月, 2013 2 次提交
    • L
      Typos. return -> returns. [ci skip] · b1b9a0ae
      Lauro Caetano 提交于
      b1b9a0ae
    • V
      Introduce a context for rendering fixtures ERB. · ddf27acb
      Victor Costan 提交于
      Fixture files are passed through an ERB renderer before being read as
      YAML. The rendering is currently done in the context of the main object,
      so method definitons leak into other fixtures, and there is no clean
      place to define fixture helpers.
      
      After this commit, the ERB renderer will use a new subclass of
      ActiveRecord::FixtureSet.context_class each time a fixture is rendered.
      ddf27acb
  32. 05 11月, 2013 1 次提交
  33. 03 10月, 2013 1 次提交
  34. 10 9月, 2013 1 次提交
  35. 08 9月, 2013 1 次提交