mirror of
https://github.com/ditkrg/active_model_serializers.git
synced 2026-01-25 15:23:06 +00:00
re: RuboCop - replace rocket style hashes
This commit is contained in:
@@ -5,7 +5,7 @@ module ActiveModel
|
||||
class FieldsetTest < ActiveSupport::TestCase
|
||||
def test_fieldset_with_hash
|
||||
fieldset = ActiveModel::Serializer::Fieldset.new('post' => %w(id title), 'comment' => ['body'])
|
||||
expected = { :post => [:id, :title], :comment => [:body] }
|
||||
expected = { post: [:id, :title], comment: [:body] }
|
||||
|
||||
assert_equal(expected, fieldset.fields)
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user