re: RuboCop - hash indention corrections

This commit is contained in:
Alexey Dubovskoy
2016-06-20 20:56:44 +01:00
parent f15f6850de
commit 004f1437d8
8 changed files with 244 additions and 244 deletions

View File

@@ -112,14 +112,14 @@ module ActiveModelSerializers
adapter = ActiveModelSerializers::Adapter::JsonApi.new(serializer)
assert_equal({
data: {
id: '1',
type: 'posts',
relationships: {
tags: { data: [@tag.as_json] }
}
}
}, adapter.serializable_hash)
data: {
id: '1',
type: 'posts',
relationships: {
tags: { data: [@tag.as_json] }
}
}
}, adapter.serializable_hash)
end
def test_has_many_with_virtual_value
@@ -127,16 +127,16 @@ module ActiveModelSerializers
adapter = ActiveModelSerializers::Adapter::JsonApi.new(serializer)
assert_equal({
data: {
id: '1',
type: 'virtual-values',
relationships: {
maker: { data: { type: 'makers', id: '1' } },
reviews: { data: [{ type: 'reviews', id: '1' },
{ type: 'reviews', id: '2' }] }
}
}
}, adapter.serializable_hash)
data: {
id: '1',
type: 'virtual-values',
relationships: {
maker: { data: { type: 'makers', id: '1' } },
reviews: { data: [{ type: 'reviews', id: '1' },
{ type: 'reviews', id: '2' }] }
}
}
}, adapter.serializable_hash)
end
end
end