aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/test
diff options
context:
space:
mode:
authorKoichi ITO <koic.ito@gmail.com>2017-08-12 20:31:46 +0900
committerKoichi ITO <koic.ito@gmail.com>2017-08-16 17:55:25 +0900
commit7c260ae20170159f85d8b7ded1209f12653934fc (patch)
tree7a47c50110652ed74e5984e59d50699e20b64f30 /activerecord/test
parent11fd246d8f6406aa5165ebf45ca8f17c67716f7e (diff)
downloadrails-7c260ae20170159f85d8b7ded1209f12653934fc.tar.gz
rails-7c260ae20170159f85d8b7ded1209f12653934fc.tar.bz2
rails-7c260ae20170159f85d8b7ded1209f12653934fc.zip
Fix RuboCop offenses
And enable `context_dependent` of Style/BracesAroundHashParameters cop.
Diffstat (limited to 'activerecord/test')
-rw-r--r--activerecord/test/cases/attribute_set_test.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/activerecord/test/cases/attribute_set_test.rb b/activerecord/test/cases/attribute_set_test.rb
index 006372a757..8be77ed88f 100644
--- a/activerecord/test/cases/attribute_set_test.rb
+++ b/activerecord/test/cases/attribute_set_test.rb
@@ -16,7 +16,7 @@ module ActiveRecord
test "building with custom types" do
builder = AttributeSet::Builder.new(foo: Type::Float.new)
- attributes = builder.build_from_database({ foo: "3.3", bar: "4.4" }, bar: Type::Integer.new)
+ attributes = builder.build_from_database({ foo: "3.3", bar: "4.4" }, { bar: Type::Integer.new })
assert_equal 3.3, attributes[:foo].value
assert_equal 4, attributes[:bar].value