faceter 0.0.2 → 0.1.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (61) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +9 -0
  3. data/faceter.gemspec +1 -1
  4. data/lib/faceter/nodes/change_prefix.rb +1 -1
  5. data/lib/faceter/nodes/create.rb +1 -1
  6. data/lib/faceter/nodes/exclude.rb +1 -1
  7. data/lib/faceter/nodes/field.rb +1 -1
  8. data/lib/faceter/nodes/fold.rb +1 -1
  9. data/lib/faceter/nodes/group.rb +1 -1
  10. data/lib/faceter/nodes/list.rb +1 -1
  11. data/lib/faceter/nodes/rename.rb +1 -1
  12. data/lib/faceter/nodes/stringify_keys.rb +1 -1
  13. data/lib/faceter/nodes/symbolize_keys.rb +1 -1
  14. data/lib/faceter/nodes/unfold.rb +1 -1
  15. data/lib/faceter/nodes/ungroup.rb +1 -1
  16. data/lib/faceter/nodes/unwrap.rb +1 -1
  17. data/lib/faceter/nodes/wrap.rb +1 -1
  18. data/lib/faceter/rules/append_nested.rb +1 -1
  19. data/lib/faceter/rules/merge_branches.rb +2 -2
  20. data/lib/faceter/rules/merge_excludes.rb +1 -1
  21. data/lib/faceter/rules/merge_renames.rb +1 -1
  22. data/lib/faceter/rules/order_fields.rb +1 -1
  23. data/lib/faceter/rules/prepend_nested.rb +1 -1
  24. data/lib/faceter/version.rb +1 -1
  25. data/spec/integration/commands/add_prefix_spec.rb +2 -2
  26. data/spec/integration/commands/exclude_spec.rb +5 -5
  27. data/spec/integration/commands/fold_spec.rb +2 -2
  28. data/spec/integration/commands/group_spec.rb +5 -5
  29. data/spec/integration/commands/remove_prefix_spec.rb +6 -6
  30. data/spec/integration/commands/rename_spec.rb +2 -2
  31. data/spec/integration/commands/stringify_keys_spec.rb +8 -8
  32. data/spec/integration/commands/symbolize_keys_spec.rb +4 -4
  33. data/spec/integration/commands/unfold_spec.rb +2 -2
  34. data/spec/integration/commands/ungroup_spec.rb +5 -5
  35. data/spec/integration/commands/unwrap_spec.rb +4 -4
  36. data/spec/integration/commands/wrap_spec.rb +4 -4
  37. data/spec/unit/functions/add_prefix_spec.rb +1 -1
  38. data/spec/unit/functions/claster_spec.rb +1 -1
  39. data/spec/unit/functions/drop_prefix_spec.rb +3 -3
  40. data/spec/unit/functions/group_spec.rb +6 -6
  41. data/spec/unit/functions/ungroup_spec.rb +1 -1
  42. data/spec/unit/functions/wrap_spec.rb +6 -6
  43. data/spec/unit/nodes/add_prefix_spec.rb +7 -7
  44. data/spec/unit/nodes/create_spec.rb +6 -6
  45. data/spec/unit/nodes/exclude_spec.rb +1 -1
  46. data/spec/unit/nodes/field_spec.rb +3 -3
  47. data/spec/unit/nodes/fold_spec.rb +2 -2
  48. data/spec/unit/nodes/group_spec.rb +10 -10
  49. data/spec/unit/nodes/list_spec.rb +2 -2
  50. data/spec/unit/nodes/remove_prefix_spec.rb +7 -7
  51. data/spec/unit/nodes/rename_spec.rb +1 -1
  52. data/spec/unit/nodes/unfold_spec.rb +2 -2
  53. data/spec/unit/nodes/ungroup_spec.rb +1 -1
  54. data/spec/unit/nodes/unwrap_spec.rb +4 -4
  55. data/spec/unit/nodes/wrap_spec.rb +2 -2
  56. data/spec/unit/rules/append_nested_spec.rb +5 -5
  57. data/spec/unit/rules/merge_branches_spec.rb +11 -11
  58. data/spec/unit/rules/merge_excludes_spec.rb +2 -2
  59. data/spec/unit/rules/merge_renames_spec.rb +7 -7
  60. data/spec/unit/rules/prepend_nested_spec.rb +5 -5
  61. metadata +3 -3
@@ -9,11 +9,11 @@ describe "fold" do
9
9
  {
10
10
  name: "Joe",
11
11
  emails: [{ address: "joe@doe.com" }, { address: "joe@doe.org" }]
12
- },
12
+ },
13
13
  {
14
14
  name: "Jane",
15
15
  emails: [{ address: "jane@doe.com" }]
16
- }
16
+ }
17
17
  ]
18
18
  end
19
19
 
@@ -15,16 +15,16 @@ describe "ungroup" do
15
15
  { email: "joe@doe.com", type: "job" },
16
16
  { email: "joe@doe.org", type: "job" }
17
17
  ]
18
- },
18
+ },
19
19
  {
20
20
  name: "Ian",
21
21
  contacts: [
22
22
  { email: "ian@doe.com", type: "job" },
23
23
  { email: "ian@doe.org", type: "job" }
24
24
  ]
25
- }
25
+ }
26
26
  ]
27
- }
27
+ }
28
28
  ]
29
29
  end
30
30
 
@@ -35,13 +35,13 @@ describe "ungroup" do
35
35
  role: "admin",
36
36
  type: "job",
37
37
  contacts: [{ email: "joe@doe.com" }, { email: "joe@doe.org" }]
38
- },
38
+ },
39
39
  {
40
40
  name: "Ian",
41
41
  role: "admin",
42
42
  type: "job",
43
43
  contacts: [{ email: "ian@doe.com" }, { email: "ian@doe.org" }]
44
- }
44
+ }
45
45
  ]
46
46
  end
47
47
 
@@ -9,11 +9,11 @@ describe "unwrap" do
9
9
  {
10
10
  user: { id: 1, name: "joe" },
11
11
  contacts: [{ email: { address: "joe@doe.com", type: "job" } }]
12
- },
12
+ },
13
13
  {
14
14
  user: { id: 2, name: "jane" },
15
15
  contacts: [{ email: { address: "jane@doe.com", type: "job" } }]
16
- }
16
+ }
17
17
  ]
18
18
  end
19
19
 
@@ -22,11 +22,11 @@ describe "unwrap" do
22
22
  {
23
23
  id: 1, name: "joe",
24
24
  contacts: [{ email: { address: "joe@doe.com" }, type: "job" }]
25
- },
25
+ },
26
26
  {
27
27
  id: 2, name: "jane",
28
28
  contacts: [{ email: { address: "jane@doe.com" }, type: "job" }]
29
- }
29
+ }
30
30
  ]
31
31
  end
32
32
 
@@ -9,11 +9,11 @@ describe "wrap" do
9
9
  {
10
10
  id: 1, name: "joe",
11
11
  contacts: [{ email: { address: "joe@doe.com" }, type: "job" }]
12
- },
12
+ },
13
13
  {
14
14
  id: 2, name: "jane",
15
15
  contacts: [{ email: { address: "jane@doe.com" }, type: "job" }]
16
- }
16
+ }
17
17
  ]
18
18
  end
19
19
 
@@ -22,11 +22,11 @@ describe "wrap" do
22
22
  {
23
23
  user: { id: 1, name: "joe" },
24
24
  contacts: [{ email: { address: "joe@doe.com", type: "job" } }]
25
- },
25
+ },
26
26
  {
27
27
  user: { id: 2, name: "jane" },
28
28
  contacts: [{ email: { address: "jane@doe.com", type: "job" } }]
29
- }
29
+ }
30
30
  ]
31
31
  end
32
32
 
@@ -5,7 +5,7 @@ describe Faceter::Functions, ".add_prefix" do
5
5
  it_behaves_like :transforming_immutable_data do
6
6
  let(:arguments) { [:add_prefix, "foo", "."] }
7
7
 
8
- let(:input) { "bar" }
8
+ let(:input) { "bar" }
9
9
  let(:output) { "foo.bar" }
10
10
  end
11
11
 
@@ -5,7 +5,7 @@ describe Faceter::Functions, ".claster" do
5
5
  it_behaves_like :transforming_immutable_data do
6
6
  let(:arguments) { [:claster, -> v { v.class }] }
7
7
 
8
- let(:input) { [:foo, :bar, "foo", :bar, :baz] }
8
+ let(:input) { [:foo, :bar, "foo", :bar, :baz] }
9
9
  let(:output) { [[:foo, :bar], ["foo"], [:bar, :baz]] }
10
10
  end
11
11
 
@@ -6,14 +6,14 @@ describe Faceter::Functions, ".drop_prefix" do
6
6
  let(:arguments) { [:drop_prefix, "foo", "."] }
7
7
 
8
8
  let(:input) { "foo.bar" }
9
- let(:output) { "bar" }
9
+ let(:output) { "bar" }
10
10
  end
11
11
 
12
12
  it_behaves_like :transforming_immutable_data do
13
13
  let(:arguments) { [:drop_prefix, "foo", "."] }
14
14
 
15
15
  let(:input) { "foo." }
16
- let(:output) { "" }
16
+ let(:output) { "" }
17
17
  end
18
18
 
19
19
  it_behaves_like :transforming_immutable_data do
@@ -26,7 +26,7 @@ describe Faceter::Functions, ".drop_prefix" do
26
26
  it_behaves_like :transforming_immutable_data do
27
27
  let(:arguments) { [:drop_prefix, "foo", "."] }
28
28
 
29
- let(:input) { :foo_bar }
29
+ let(:input) { :foo_bar }
30
30
  let(:output) { "foo_bar" }
31
31
  end
32
32
 
@@ -74,7 +74,7 @@ describe Faceter::Functions, ".group" do
74
74
 
75
75
  let(:input) do
76
76
  [
77
- { foo: :FOO, bar: :FOO, baz: [{ baz: :BAZ }], qux: :QUX },
77
+ { foo: :FOO, bar: :FOO, baz: [{ baz: :BAZ }], qux: :QUX },
78
78
  { foo: :BAR, bar: :BAR, baz: [{ baz: :BAZZ }], qux: :QUX }
79
79
  ]
80
80
  end
@@ -87,7 +87,7 @@ describe Faceter::Functions, ".group" do
87
87
  { foo: :FOO, bar: :FOO, baz: :BAZ },
88
88
  { foo: :BAR, bar: :BAR, baz: :BAZZ }
89
89
  ]
90
- }
90
+ }
91
91
  ]
92
92
  end
93
93
  end
@@ -113,7 +113,7 @@ describe Faceter::Functions, ".group" do
113
113
  { baz: :BAZ, foo: :BAR },
114
114
  { baz: :QUX, foo: :BAR }
115
115
  ]
116
- }
116
+ }
117
117
  ]
118
118
  end
119
119
  end
@@ -142,7 +142,7 @@ describe Faceter::Functions, ".group" do
142
142
 
143
143
  let(:input) do
144
144
  [
145
- { foo: [{ bar: :FOO }, { baz: :FOO }], qux: :QUX },
145
+ { foo: [{ bar: :FOO }, { baz: :FOO }], qux: :QUX },
146
146
  { foo: [{ bar: :BAR }, { baz: :BAR }], qux: :QUX }
147
147
  ]
148
148
  end
@@ -152,10 +152,10 @@ describe Faceter::Functions, ".group" do
152
152
  {
153
153
  qux: :QUX,
154
154
  foo: [
155
- { foo: [{ bar: :FOO }, { baz: :FOO }] },
155
+ { foo: [{ bar: :FOO }, { baz: :FOO }] },
156
156
  { foo: [{ bar: :BAR }, { baz: :BAR }] }
157
157
  ]
158
- }
158
+ }
159
159
  ]
160
160
  end
161
161
  end
@@ -63,7 +63,7 @@ describe Faceter::Functions, ".ungroup" do
63
63
  {
64
64
  qux: :QUX, foo: :QUX,
65
65
  baz: [{ foo: :FOO, bar: :FOO }, { foo: :BAR, bar: :BAR }]
66
- }
66
+ }
67
67
  ]
68
68
  end
69
69
 
@@ -17,7 +17,7 @@ describe Faceter::Functions, ".wrap" do
17
17
 
18
18
  it_behaves_like :transforming_immutable_data do
19
19
  let(:options) { { except: :foo } }
20
- let(:output) { { foo: { bar: :BAR, baz: :BAZ, qux: :QUX } } }
20
+ let(:output) { { foo: { bar: :BAR, baz: :BAZ, qux: :QUX } } }
21
21
  end
22
22
 
23
23
  it_behaves_like :transforming_immutable_data do
@@ -27,12 +27,12 @@ describe Faceter::Functions, ".wrap" do
27
27
 
28
28
  it_behaves_like :transforming_immutable_data do
29
29
  let(:options) { { except: [:foo, :bar] } }
30
- let(:output) { { bar: :BAR, foo: { baz: :BAZ, qux: :QUX } } }
30
+ let(:output) { { bar: :BAR, foo: { baz: :BAZ, qux: :QUX } } }
31
31
  end
32
32
 
33
33
  it_behaves_like :transforming_immutable_data do
34
34
  let(:options) { { only: [] } }
35
- let(:output) { { foo: {}, bar: :BAR, baz: :BAZ, qux: :QUX } }
35
+ let(:output) { { foo: {}, bar: :BAR, baz: :BAZ, qux: :QUX } }
36
36
  end
37
37
 
38
38
  it_behaves_like :transforming_immutable_data do
@@ -42,7 +42,7 @@ describe Faceter::Functions, ".wrap" do
42
42
 
43
43
  it_behaves_like :transforming_immutable_data do
44
44
  let(:options) { { only: :bar } }
45
- let(:output) { { foo: { bar: :BAR }, baz: :BAZ, qux: :QUX } }
45
+ let(:output) { { foo: { bar: :BAR }, baz: :BAZ, qux: :QUX } }
46
46
  end
47
47
 
48
48
  it_behaves_like :transforming_immutable_data do
@@ -54,14 +54,14 @@ describe Faceter::Functions, ".wrap" do
54
54
  let(:options) { { only: [:bar] } }
55
55
 
56
56
  let(:input) { { foo: { foo: :FOO, bar: :FOO }, bar: :BAR, baz: :BAZ } }
57
- let(:output) { { foo: { foo: :FOO, bar: :BAR }, baz: :BAZ } }
57
+ let(:output) { { foo: { foo: :FOO, bar: :BAR }, baz: :BAZ } }
58
58
  end
59
59
 
60
60
  it_behaves_like :transforming_immutable_data do
61
61
  let(:options) { { except: :foo } }
62
62
 
63
63
  let(:input) { { foo: { foo: :FOO, bar: :FOO }, bar: :BAR, baz: :BAZ } }
64
- let(:output) { { foo: { foo: :FOO, bar: :BAR, baz: :BAZ } } }
64
+ let(:output) { { foo: { foo: :FOO, bar: :BAR, baz: :BAZ } } }
65
65
  end
66
66
 
67
67
  end # describe Faceter::Functions.wrap
@@ -9,14 +9,14 @@ describe Faceter::Nodes::AddPrefix do
9
9
  it_behaves_like :mapping_immutable_input do
10
10
  let(:attributes) { { prefix: "foo" } }
11
11
 
12
- let(:input) { { bar: "BAR", "baz" => { qux: :QUX } } }
12
+ let(:input) { { bar: "BAR", "baz" => { qux: :QUX } } }
13
13
  let(:output) { { foo_bar: "BAR", "foo_baz" => { qux: :QUX } } }
14
14
  end
15
15
 
16
16
  it_behaves_like :mapping_immutable_input do
17
17
  let(:attributes) { { prefix: "foo", separator: "." } }
18
18
 
19
- let(:input) { { bar: "BAR", "baz" => { qux: :QUX } } }
19
+ let(:input) { { bar: "BAR", "baz" => { qux: :QUX } } }
20
20
  let(:output) { { :"foo.bar" => "BAR", "foo.baz" => { qux: :QUX } } }
21
21
  end
22
22
 
@@ -24,7 +24,7 @@ describe Faceter::Nodes::AddPrefix do
24
24
  let(:selector) { Selector.new(only: /bar/) }
25
25
  let(:attributes) { { prefix: "foo", selector: selector } }
26
26
 
27
- let(:input) { { bar: "BAR", "baz" => { qux: :QUX } } }
27
+ let(:input) { { bar: "BAR", "baz" => { qux: :QUX } } }
28
28
  let(:output) { { foo_bar: "BAR", "baz" => { qux: :QUX } } }
29
29
  end
30
30
 
@@ -32,14 +32,14 @@ describe Faceter::Nodes::AddPrefix do
32
32
  let(:selector) { Selector.new(except: "baz") }
33
33
  let(:attributes) { { prefix: "foo", selector: selector } }
34
34
 
35
- let(:input) { { bar: "BAR", "baz" => { qux: :QUX } } }
35
+ let(:input) { { bar: "BAR", "baz" => { qux: :QUX } } }
36
36
  let(:output) { { foo_bar: "BAR", "baz" => { qux: :QUX } } }
37
37
  end
38
38
 
39
39
  it_behaves_like :mapping_immutable_input do
40
40
  let(:attributes) { { prefix: "foo", nested: true } }
41
41
 
42
- let(:input) { { bar: "BAR", "baz" => { qux: :QUX } } }
42
+ let(:input) { { bar: "BAR", "baz" => { qux: :QUX } } }
43
43
  let(:output) { { foo_bar: "BAR", "foo_baz" => { foo_qux: :QUX } } }
44
44
  end
45
45
 
@@ -47,7 +47,7 @@ describe Faceter::Nodes::AddPrefix do
47
47
  let(:selector) { Selector.new(except: /b/) }
48
48
  let(:attributes) { { prefix: "foo", nested: true, selector: selector } }
49
49
 
50
- let(:input) { { bar: "BAR", "baz" => { qux: :QUX } } }
50
+ let(:input) { { bar: "BAR", "baz" => { qux: :QUX } } }
51
51
  let(:output) { { bar: "BAR", "baz" => { foo_qux: :QUX } } }
52
52
  end
53
53
 
@@ -55,7 +55,7 @@ describe Faceter::Nodes::AddPrefix do
55
55
  let(:selector) { Selector.new(only: /q/) }
56
56
  let(:attributes) { { prefix: "foo", nested: true, selector: selector } }
57
57
 
58
- let(:input) { { bar: "BAR", "baz" => { qux: :QUX } } }
58
+ let(:input) { { bar: "BAR", "baz" => { qux: :QUX } } }
59
59
  let(:output) { { bar: "BAR", "baz" => { foo_qux: :QUX } } }
60
60
  end
61
61
 
@@ -10,27 +10,27 @@ describe Faceter::Nodes::Create do
10
10
  let(:attributes) { { keys: :bar } }
11
11
 
12
12
  let(:input) { { bar: :BAR, baz: :BAZ } }
13
- let(:output) { :BAR }
13
+ let(:output) { :BAR }
14
14
  end
15
15
 
16
16
  it_behaves_like :mapping_immutable_input do
17
17
  let(:attributes) { { keys: [:bar] } }
18
18
 
19
19
  let(:input) { { bar: :BAR, baz: :BAZ } }
20
- let(:output) { [:BAR] }
20
+ let(:output) { [:BAR] }
21
21
  end
22
22
 
23
23
  it_behaves_like :mapping_immutable_input do
24
24
  let(:attributes) { { name: :foo, keys: :bar } }
25
25
 
26
- let(:input) { { bar: :BAR, baz: :BAZ } }
26
+ let(:input) { { bar: :BAR, baz: :BAZ } }
27
27
  let(:output) { { bar: :BAR, baz: :BAZ, foo: :BAR } }
28
28
  end
29
29
 
30
30
  it_behaves_like :mapping_immutable_input do
31
31
  let(:attributes) { { name: :foo, keys: [:bar, :baz] } }
32
32
 
33
- let(:input) { { bar: :BAR, baz: :BAZ } }
33
+ let(:input) { { bar: :BAR, baz: :BAZ } }
34
34
  let(:output) { { bar: :BAR, baz: :BAZ, foo: [:BAR, :BAZ] } }
35
35
  end
36
36
 
@@ -38,7 +38,7 @@ describe Faceter::Nodes::Create do
38
38
  let(:block) { proc { |bar| bar.to_s } }
39
39
  let(:attributes) { { name: :foo, keys: :bar } }
40
40
 
41
- let(:input) { { bar: :BAR, baz: :BAZ } }
41
+ let(:input) { { bar: :BAR, baz: :BAZ } }
42
42
  let(:output) { { bar: :BAR, baz: :BAZ, foo: "BAR" } }
43
43
  end
44
44
 
@@ -46,7 +46,7 @@ describe Faceter::Nodes::Create do
46
46
  let(:block) { proc { |*args| args.map(&:to_s) } }
47
47
  let(:attributes) { { name: :foo, keys: [:bar, :baz] } }
48
48
 
49
- let(:input) { { bar: :BAR, baz: :BAZ } }
49
+ let(:input) { { bar: :BAR, baz: :BAZ } }
50
50
  let(:output) { { bar: :BAR, baz: :BAZ, foo: %w(BAR BAZ) } }
51
51
  end
52
52
 
@@ -12,7 +12,7 @@ describe Faceter::Nodes::Exclude do
12
12
  let(:options) { { only: [:foo, :bar] } }
13
13
 
14
14
  let(:input) { { foo: :FOO, bar: :BAR, baz: :BAZ } }
15
- let(:output) { { baz: :BAZ } }
15
+ let(:output) { { baz: :BAZ } }
16
16
  end
17
17
 
18
18
  end # describe Faceter::Nodes::Exclude
@@ -3,11 +3,11 @@
3
3
  describe Faceter::Nodes::Field do
4
4
 
5
5
  before do
6
- class Faceter::Test::Foo < AbstractMapper::Node
6
+ class Faceter::Test::Foo < AbstractMapper::AST::Node
7
7
  define_method(:transproc) { Faceter::Functions[:rename_keys, foo: :baz] }
8
8
  end
9
9
 
10
- class Faceter::Test::Bar < AbstractMapper::Node
10
+ class Faceter::Test::Bar < AbstractMapper::AST::Node
11
11
  define_method(:transproc) { Faceter::Functions[:rename_keys, bar: :qux] }
12
12
  end
13
13
  end
@@ -20,7 +20,7 @@ describe Faceter::Nodes::Field do
20
20
  end
21
21
 
22
22
  it_behaves_like :mapping_immutable_input do
23
- let(:attributes) { { key: :baz } }
23
+ let(:attributes) { { key: :baz } }
24
24
  let(:block) { proc { [foo, bar] } }
25
25
 
26
26
  let(:input) { { baz: { foo: :FOO, bar: :BAR } } }
@@ -7,12 +7,12 @@ describe Faceter::Nodes::Fold do
7
7
  it_behaves_like :creating_immutable_node
8
8
 
9
9
  it_behaves_like :mapping_immutable_input do
10
- let(:input) { :FOO }
10
+ let(:input) { :FOO }
11
11
  let(:output) { { foo: :FOO } }
12
12
  end
13
13
 
14
14
  it_behaves_like :mapping_immutable_input do
15
- let(:input) { nil }
15
+ let(:input) { nil }
16
16
  let(:output) { { foo: nil } }
17
17
  end
18
18
 
@@ -24,7 +24,7 @@ describe Faceter::Nodes::Group do
24
24
  {
25
25
  qux: :QUX,
26
26
  baz: [{ foo: :FOO, bar: :FOO }, { foo: :BAR, bar: :BAR }]
27
- }
27
+ }
28
28
  ]
29
29
  end
30
30
  end
@@ -44,7 +44,7 @@ describe Faceter::Nodes::Group do
44
44
  {
45
45
  qux: :QUX,
46
46
  baz: [{ foo: :FOO, bar: :FOO }, { foo: :BAR, bar: :BAR }]
47
- }
47
+ }
48
48
  ]
49
49
  end
50
50
  end
@@ -64,7 +64,7 @@ describe Faceter::Nodes::Group do
64
64
  {
65
65
  qux: :QUX,
66
66
  baz: [{ foo: :FOO, bar: :FOO }, { foo: :BAR, bar: :BAR }]
67
- }
67
+ }
68
68
  ]
69
69
  end
70
70
  end
@@ -74,7 +74,7 @@ describe Faceter::Nodes::Group do
74
74
 
75
75
  let(:input) do
76
76
  [
77
- { foo: :FOO, bar: :FOO, baz: [{ baz: :BAZ }], qux: :QUX },
77
+ { foo: :FOO, bar: :FOO, baz: [{ baz: :BAZ }], qux: :QUX },
78
78
  { foo: :BAR, bar: :BAR, baz: [{ baz: :BAZZ }], qux: :QUX }
79
79
  ]
80
80
  end
@@ -87,7 +87,7 @@ describe Faceter::Nodes::Group do
87
87
  { foo: :FOO, bar: :FOO, baz: :BAZ },
88
88
  { foo: :BAR, bar: :BAR, baz: :BAZZ }
89
89
  ]
90
- }
90
+ }
91
91
  ]
92
92
  end
93
93
  end
@@ -112,7 +112,7 @@ describe Faceter::Nodes::Group do
112
112
  { baz: :BAZ, foo: :BAR },
113
113
  { baz: :QUX, foo: :BAR }
114
114
  ]
115
- }
115
+ }
116
116
  ]
117
117
  end
118
118
  end
@@ -132,7 +132,7 @@ describe Faceter::Nodes::Group do
132
132
  {
133
133
  qux: :QUX,
134
134
  baz: [{ foo: :FOO, baz: :FOO }, { foo: :BAR, baz: :BAR }]
135
- }
135
+ }
136
136
  ]
137
137
  end
138
138
  end
@@ -142,7 +142,7 @@ describe Faceter::Nodes::Group do
142
142
 
143
143
  let(:input) do
144
144
  [
145
- { baz: [{ bar: :FOO }, { baz: :FOO }], qux: :QUX },
145
+ { baz: [{ bar: :FOO }, { baz: :FOO }], qux: :QUX },
146
146
  { baz: [{ bar: :BAR }, { baz: :BAR }], qux: :QUX }
147
147
  ]
148
148
  end
@@ -152,10 +152,10 @@ describe Faceter::Nodes::Group do
152
152
  {
153
153
  qux: :QUX,
154
154
  baz: [
155
- { baz: [{ bar: :FOO }, { baz: :FOO }] },
155
+ { baz: [{ bar: :FOO }, { baz: :FOO }] },
156
156
  { baz: [{ bar: :BAR }, { baz: :BAR }] }
157
157
  ]
158
- }
158
+ }
159
159
  ]
160
160
  end
161
161
  end