aboutsummaryrefslogtreecommitdiffstats
path: root/activesupport
diff options
context:
space:
mode:
authorMatthew Draper <matthew@trebex.net>2017-08-16 19:47:37 +0930
committerGitHub <noreply@github.com>2017-08-16 19:47:37 +0930
commit7c8d50fec1c78c5edcb50503216235b00b2d8fe0 (patch)
tree39048bfa5f815b68894f06272a3150d9c816f663 /activesupport
parent0789d093f3473dd9bc95e387cc519072760a6759 (diff)
parent7c260ae20170159f85d8b7ded1209f12653934fc (diff)
downloadrails-7c8d50fec1c78c5edcb50503216235b00b2d8fe0.tar.gz
rails-7c8d50fec1c78c5edcb50503216235b00b2d8fe0.tar.bz2
rails-7c8d50fec1c78c5edcb50503216235b00b2d8fe0.zip
Merge pull request #30210 from koic/fix_rubocop_offenses
Fix RuboCop offenses
Diffstat (limited to 'activesupport')
-rw-r--r--activesupport/test/json/encoding_test.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/activesupport/test/json/encoding_test.rb b/activesupport/test/json/encoding_test.rb
index 80d03ec9d6..eafa2e1712 100644
--- a/activesupport/test/json/encoding_test.rb
+++ b/activesupport/test/json/encoding_test.rb
@@ -100,11 +100,11 @@ class TestJSONEncoding < ActiveSupport::TestCase
end
def test_hash_should_allow_key_filtering_with_only
- assert_equal %({"a":1}), ActiveSupport::JSON.encode({ "a" => 1, :b => 2, :c => 3 }, only: "a")
+ assert_equal %({"a":1}), ActiveSupport::JSON.encode({ "a" => 1, :b => 2, :c => 3 }, { only: "a" })
end
def test_hash_should_allow_key_filtering_with_except
- assert_equal %({"b":2}), ActiveSupport::JSON.encode({ "foo" => "bar", :b => 2, :c => 3 }, except: ["foo", :c])
+ assert_equal %({"b":2}), ActiveSupport::JSON.encode({ "foo" => "bar", :b => 2, :c => 3 }, { except: ["foo", :c] })
end
def test_time_to_json_includes_local_offset