Skip to content

Commit

Permalink
address hound warning by letting JSON in tests slide
Browse files Browse the repository at this point in the history
  • Loading branch information
seanpdoyle committed Nov 9, 2018
1 parent 42d6c6e commit 91ef902
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 7 deletions.
14 changes: 14 additions & 0 deletions .rubocop.yml
Expand Up @@ -17,6 +17,20 @@ Style/BracesAroundHashParameters:
Style/SymbolArray:
Enabled: false

Style/TrailingCommaInArrayLiteral:
Enabled: true
Exclude:
- 'test/**/*_test.rb'
- 'spec/**/*_spec.rb'
- 'spec/factories.rb'

Style/TrailingCommaInHashLiteral:
Enabled: true
Exclude:
- 'test/**/*_test.rb'
- 'spec/**/*_spec.rb'
- 'spec/factories.rb'

Layout/IndentHeredoc:
Enabled: false

Expand Down
14 changes: 7 additions & 7 deletions spec/json_matchers/match_json_schema_spec.rb
Expand Up @@ -143,21 +143,21 @@
"type": "object",
"required": [
"id",
"name",
"name"
],
"properties": {
"id": { "type": "string" },
"name": { "type": "string" },
"user": {
"type": "object",
"required": [
"id",
"id"
],
"properties": {
"id": { "type": "string" },
},
},
},
"id": { "type": "string" }
}
}
}
}
}
})
Expand Down Expand Up @@ -194,7 +194,7 @@
"id": "1"
}
}
}],
}]
})

expect(json).to match_json_schema(posts_index)
Expand Down

0 comments on commit 91ef902

Please sign in to comment.