Skip to content

Commit 758e44e

Browse files
committed
Style fixes
1 parent c13354c commit 758e44e

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

test/serializers/reflection_test.rb

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -248,6 +248,7 @@ def test_reflection_block_with_meta_block_mutates_the_reflection_meta
248248
assert_respond_to association.meta, :call
249249
end
250250

251+
# rubocop:disable Metrics/AbcSize
251252
def test_reflection_block_with_meta_in_link_block_mutates_the_reflection_meta
252253
serializer_class = Class.new(ActiveModel::Serializer) do
253254
has_one :blog do
@@ -280,6 +281,7 @@ def test_reflection_block_with_meta_in_link_block_mutates_the_reflection_meta
280281
assert_equal @expected_meta, reflection.options.fetch(:meta)
281282
assert_nil association.meta
282283
end
284+
# rubocop:enable Metrics/AbcSize
283285

284286
# rubocop:disable Metrics/AbcSize
285287
def test_reflection_block_with_meta_block_in_link_block_mutates_the_reflection_meta
@@ -350,6 +352,7 @@ def test_no_href_in_vanilla_reflection
350352
assert_match(/undefined method `href'/, exception.message)
351353
end
352354

355+
# rubocop:disable Metrics/AbcSize
353356
def test_mutating_reflection_block_is_not_thread_safe
354357
serializer_class = Class.new(ActiveModel::Serializer) do
355358
has_one :blog do
@@ -380,6 +383,7 @@ def test_mutating_reflection_block_is_not_thread_safe
380383
assert_equal model2_meta, association.meta
381384
assert_equal model2_meta, reflection.options.fetch(:meta)
382385
end
386+
# rubocop:enable Metrics/AbcSize
383387
end
384388
end
385389
end

0 commit comments

Comments
 (0)