Skip to content

Commit 181b497

Browse files
authored
Merge pull request rubocop#798 from kkitadate/fix-test-case-in-file_path_spec-for-redundant-string-escape
Fix test case in file_path_spec.rb for `Style/RedundantStringEscape`
2 parents 6e6e072 + 7b07474 commit 181b497

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

spec/rubocop/cop/rails/file_path_spec.rb

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -115,8 +115,8 @@
115115

116116
context 'when string contains an interpolation followed by a period' do
117117
it 'does not register an offense' do
118-
expect_no_offenses(<<~RUBY)
119-
puts "test #\{123\}. Hey!"
118+
expect_no_offenses(<<~'RUBY')
119+
puts "test #{123}. Hey!"
120120
RUBY
121121
end
122122
end
@@ -244,8 +244,8 @@
244244

245245
context 'when string contains an interpolation followed by a period' do
246246
it 'does not register an offense' do
247-
expect_no_offenses(<<~RUBY)
248-
puts "test #\{123\}. Hey!"
247+
expect_no_offenses(<<~'RUBY')
248+
puts "test #{123}. Hey!"
249249
RUBY
250250
end
251251
end

0 commit comments

Comments
 (0)