Commit b428ec8
Rspec lint the gorouter template tests
In #331, we added
some new template tests. They pass but contained some minor linting
issues.
Fixes:
```
spec/gorouter_templates_spec.rb:176:45: C: [Correctable] Style/WordArray: Use %w or %W for an array of words.
'hop_by_hop_headers_to_filter' => ["X-ME", "X-Foo"],
^^^^^^^^^^^^^^^^^
spec/gorouter_templates_spec.rb:176:46: C: [Correctable] Style/StringLiterals: Prefer single-quoted strings when you don't need string interpolation or special symbols.
'hop_by_hop_headers_to_filter' => ["X-ME", "X-Foo"],
^^^^^^
spec/gorouter_templates_spec.rb:176:54: C: [Correctable] Style/StringLiterals: Prefer single-quoted strings when you don't need string interpolation or special symbols.
'hop_by_hop_headers_to_filter' => ["X-ME", "X-Foo"],
^^^^^^^
spec/gorouter_templates_spec.rb:374:69: C: [Correctable] Style/WordArray: Use %w or %W for an array of words.
expect(parsed_yaml['hop_by_hop_headers_to_filter']).to eq(["X-ME","X-Foo"])
^^^^^^^^^^^^^^^^
spec/gorouter_templates_spec.rb:374:70: C: [Correctable] Style/StringLiterals: Prefer single-quoted strings when you don't need string interpolation or special symbols.
expect(parsed_yaml['hop_by_hop_headers_to_filter']).to eq(["X-ME","X-Foo"])
^^^^^^
spec/gorouter_templates_spec.rb:374:76: C: [Correctable] Layout/SpaceAfterComma: Space missing after comma.
expect(parsed_yaml['hop_by_hop_headers_to_filter']).to eq(["X-ME","X-Foo"])
^
spec/gorouter_templates_spec.rb:374:77: C: [Correctable] Style/StringLiterals: Prefer single-quoted strings when you don't need string interpolation or special symbols.
expect(parsed_yaml['hop_by_hop_headers_to_filter']).to eq(["X-ME","X-Foo"])
```1 parent 013c118 commit b428ec8
1 file changed
+2
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
173 | 173 | | |
174 | 174 | | |
175 | 175 | | |
176 | | - | |
| 176 | + | |
177 | 177 | | |
178 | 178 | | |
179 | 179 | | |
| |||
371 | 371 | | |
372 | 372 | | |
373 | 373 | | |
374 | | - | |
| 374 | + | |
375 | 375 | | |
376 | 376 | | |
377 | 377 | | |
| |||
0 commit comments