Skip to content

Commit 0d940e3

Browse files
committed
Don't run rubocop after generation on Ruby 3.4+
1 parent c11ad35 commit 0d940e3

File tree

1 file changed

+8
-6
lines changed

1 file changed

+8
-6
lines changed

railties/test/application/generators_test.rb

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -256,13 +256,15 @@ def check_expected
256256
assert_match(/# Add comment to model/, File.read(model_file))
257257
end
258258

259-
test "generators with apply_rubocop_autocorrect_after_generate!" do
260-
with_config do |c|
261-
c.generators.apply_rubocop_autocorrect_after_generate!
262-
end
259+
if RUBY_VERSION < "3.4" # Revisit when 3.4 is added to the matrix
260+
test "generators with apply_rubocop_autocorrect_after_generate!" do
261+
with_config do |c|
262+
c.generators.apply_rubocop_autocorrect_after_generate!
263+
end
263264

264-
output = rails("generate", "model", "post", "title:string", "body:string")
265-
assert_match(/3 files inspected, no offenses detected/, output)
265+
output = rails("generate", "model", "post", "title:string", "body:string")
266+
assert_match(/3 files inspected, no offenses detected/, output)
267+
end
266268
end
267269
end
268270
end

0 commit comments

Comments
 (0)