Skip to content

Commit b5207ec

Browse files
author
Florin Oltean
committed
Fix styling.
1 parent 372d327 commit b5207ec

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

activerecord/test/cases/core_test.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ def test_inspect_with_overridden_attribute_for_inspect
8383

8484
topic.instance_eval do
8585
def attribute_for_inspect(attr_name)
86-
if attr_name == 'title'
86+
if attr_name == "title"
8787
title.upcase.inspect
8888
else
8989
super
@@ -186,7 +186,7 @@ def test_pretty_print_with_overridden_attribute_for_inspect
186186

187187
topic.instance_eval do
188188
def attribute_for_inspect(attr_name)
189-
if attr_name == 'title'
189+
if attr_name == "title"
190190
title.upcase.inspect
191191
else
192192
super

activerecord/test/cases/filter_attributes_test.rb

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -121,7 +121,7 @@ class FilterAttributesTest < ActiveRecord::TestCase
121121
actual = "".dup
122122
PP.pp(user, StringIO.new(actual))
123123

124-
assert_includes actual, 'name: [FILTERED]'
124+
assert_includes actual, "name: [FILTERED]"
125125
assert_equal 1, actual.scan("[FILTERED]").length
126126
end
127127

@@ -141,8 +141,8 @@ class FilterAttributesTest < ActiveRecord::TestCase
141141
actual = "".dup
142142
PP.pp(user, StringIO.new(actual))
143143

144-
assert_includes actual, 'auth_token: [FILTERED]'
145-
assert_includes actual, 'token: [FILTERED]'
144+
assert_includes actual, "auth_token: [FILTERED]"
145+
assert_includes actual, "token: [FILTERED]"
146146
ensure
147147
User.instance_variable_set(:@filter_attributes, nil)
148148
end

0 commit comments

Comments
 (0)