joinfix 0.1.0 → 0.1.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (40) hide show
  1. data/README +1 -1
  2. data/lib/joinfix/fixtures.rb +130 -155
  3. data/lib/joinfix/fixtures_class.rb +95 -30
  4. data/lib/joinfix.rb +108 -45
  5. data/rails/log/development.log +71 -0
  6. data/rails/log/test.log +85 -0
  7. data/rails/test/test_helper.rb +1 -0
  8. data/test/belongs_to_polymorphic_test.rb +78 -0
  9. data/test/belongs_to_test.rb +135 -44
  10. data/test/belongs_to_with_options_test.rb +57 -0
  11. data/test/has_and_belongs_to_many_test.rb +36 -36
  12. data/test/has_and_belongs_to_many_with_options_test.rb +84 -0
  13. data/test/has_many_as_test.rb +66 -0
  14. data/test/has_many_test.rb +33 -69
  15. data/test/has_many_through_test.rb +79 -0
  16. data/test/has_many_through_with_options_test.rb +85 -0
  17. data/test/has_many_with_options_test.rb +63 -0
  18. data/test/has_one_test.rb +26 -27
  19. data/test/has_one_with_options_test.rb +57 -0
  20. data/test/joinfix_test.rb +5 -5
  21. data/test/joinfix_test_helper.rb +76 -16
  22. data/test/missing_fixture_test.rb +54 -0
  23. data/test/nested_test.rb +13 -6
  24. data/test/todo +15 -0
  25. metadata +48 -51
  26. data/test/fixtures/as_children.yml +0 -0
  27. data/test/fixtures/bt_children.yml +0 -0
  28. data/test/fixtures/bt_parents.yml +0 -30
  29. data/test/fixtures/habtm_children.yml +0 -0
  30. data/test/fixtures/habtm_children_habtm_parents.yml +0 -0
  31. data/test/fixtures/habtm_joins.yml +0 -0
  32. data/test/fixtures/habtm_parents.yml +0 -18
  33. data/test/fixtures/hm_children.yml +0 -0
  34. data/test/fixtures/hm_joins.yml +0 -0
  35. data/test/fixtures/hm_parents.yml +0 -34
  36. data/test/fixtures/ho_children.yml +0 -0
  37. data/test/fixtures/ho_parents.yml +0 -14
  38. data/test/fixtures/no_join_fixes.yml +0 -4
  39. data/test/fixtures/omap_no_join_fixes.yml +0 -7
  40. data/test/fixtures/polymorphic_children.yml +0 -0
@@ -1,34 +0,0 @@
1
- without_children:
2
- field: without_children
3
-
4
- with_hm_children:
5
- field: with_hm_children
6
- hm_children:
7
- first:
8
- field: 1
9
- second:
10
- field: 2
11
-
12
- with_children:
13
- field: with_children
14
- children:
15
- third:
16
- field: 3
17
- fourth:
18
- field: 4
19
-
20
- with_through_children:
21
- field: with_through_children
22
- through_children:
23
- fifth:
24
- field: 5
25
- sixth:
26
- field: 6
27
-
28
- with_as_children:
29
- field: with_as_children
30
- as_children:
31
- seventh:
32
- field: 7
33
- eighth:
34
- field: 8
File without changes
@@ -1,14 +0,0 @@
1
- without_child:
2
- field: without_child
3
-
4
- with_ho_child:
5
- field: with_ho_child
6
- ho_child:
7
- first:
8
- field: 1
9
-
10
- with_child:
11
- field: with_child
12
- child:
13
- second:
14
- field: 2
@@ -1,4 +0,0 @@
1
- first:
2
- field: 1
3
- second:
4
- field: 2
@@ -1,7 +0,0 @@
1
- --- !omap
2
- - first:
3
- id: 1
4
- field: 1
5
- - second:
6
- id: 2
7
- field: 1
File without changes