Skip to content

Commit

Permalink
Merge pull request #51854 from yahonda/address_rubocop_offenses_since…
Browse files Browse the repository at this point in the history
…_51826

Address `Layout/IndentationWidth` cop offenses
  • Loading branch information
yahonda committed May 17, 2024
2 parents d0ce794 + b708a1b commit 965b8c3
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions activerecord/test/cases/connection_adapters/type_lookup_test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -88,12 +88,12 @@ def test_bigint_limit
end

def test_decimal_without_scale
%w{decimal(2) decimal(2,0) numeric(2) numeric(2,0) number(2) number(2,0)}.each do |type|
cast_type = @connection.send(:type_map).lookup(type)
%w{decimal(2) decimal(2,0) numeric(2) numeric(2,0) number(2) number(2,0)}.each do |type|
cast_type = @connection.send(:type_map).lookup(type)

assert_equal :decimal, cast_type.type
assert_equal 2, cast_type.cast(2.1)
end
assert_equal :decimal, cast_type.type
assert_equal 2, cast_type.cast(2.1)
end
end

private
Expand Down

0 comments on commit 965b8c3

Please sign in to comment.