mirror of
https://github.com/ditkrg/active_model_serializers.git
synced 2026-01-25 07:16:49 +00:00
re: RuboCop - replace rocket style hashes
This commit is contained in:
@@ -51,8 +51,8 @@ module ActiveModelSerializers
|
||||
}
|
||||
)
|
||||
expected_response_document = {
|
||||
:errors => [
|
||||
{ :source => { :pointer => '/data/attributes/name' }, :detail => 'must be awesome' }
|
||||
errors: [
|
||||
{ source: { pointer: '/data/attributes/name' }, detail: 'must be awesome' }
|
||||
]
|
||||
}
|
||||
assert_equal serializable_resource.as_json(options), expected_response_document
|
||||
@@ -72,8 +72,8 @@ module ActiveModelSerializers
|
||||
}
|
||||
)
|
||||
expected_response_document = {
|
||||
:errors => [
|
||||
{ :source => { :pointer => '/data/attributes/title' }, :detail => 'must be amazing' }
|
||||
errors: [
|
||||
{ source: { pointer: '/data/attributes/title' }, detail: 'must be amazing' }
|
||||
]
|
||||
}
|
||||
assert_equal serializable_resource.as_json(options), expected_response_document
|
||||
|
||||
Reference in New Issue
Block a user