aboutsummaryrefslogtreecommitdiffstats
path: root/actionview
diff options
context:
space:
mode:
authorRyuta Kamizono <kamipo@gmail.com>2019-04-16 18:14:49 +0900
committerGitHub <noreply@github.com>2019-04-16 18:14:49 +0900
commit96851dcee6a11f3ca48abaa34b1d38bb4766406e (patch)
tree193aafddff9baafc46c2874579ed72216ca5bfff /actionview
parent78255ccae84bf72cbc7a62bd26123c2eae27851c (diff)
parentc6379fd27f159177a54f34796a0f5e4c778c4290 (diff)
downloadrails-96851dcee6a11f3ca48abaa34b1d38bb4766406e.tar.gz
rails-96851dcee6a11f3ca48abaa34b1d38bb4766406e.tar.bz2
rails-96851dcee6a11f3ca48abaa34b1d38bb4766406e.zip
Merge pull request #35989 from koic/bump_rubocop_to_0_67_2
Bump RuboCop to 0.67.2
Diffstat (limited to 'actionview')
-rw-r--r--actionview/test/template/resolver_shared_tests.rb6
1 files changed, 4 insertions, 2 deletions
diff --git a/actionview/test/template/resolver_shared_tests.rb b/actionview/test/template/resolver_shared_tests.rb
index 525b452075..8b47c5bc89 100644
--- a/actionview/test/template/resolver_shared_tests.rb
+++ b/actionview/test/template/resolver_shared_tests.rb
@@ -1,3 +1,5 @@
+# frozen_string_literal: true
+
module ResolverSharedTests
attr_reader :tmpdir
@@ -7,7 +9,7 @@ module ResolverSharedTests
end
end
- def with_file(filename, source="File at #{filename}")
+ def with_file(filename, source = "File at #{filename}")
path = File.join(tmpdir, filename)
FileUtils.mkdir_p(File.dirname(path))
File.write(path, source)
@@ -103,7 +105,7 @@ module ResolverSharedTests
c = context.find("hello_world", "test", false, [], {})
# disable_cache should give us a new object
- refute_same a, b
+ assert_not_same a, b
# but it should not clear the cache
assert_same a, c