Skip to content

Commit 14767db

Browse files
committed
Fix system tests
1 parent 9f02036 commit 14767db

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/generators/test_unit/scaffold/scaffold_generator.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ module TestUnit # :nodoc:
44
module Generators # :nodoc:
55
class ScaffoldGenerator < Base # :nodoc:
66
def fix_system_test
7-
return unless turbo_defined? && options[:system_tests] == "true"
7+
return unless turbo_defined? && options[:system_tests]
88
test_file = File.join("test/system", class_path, "#{file_name.pluralize}_test.rb")
99
return unless File.exist?(test_file)
1010
gsub_file test_file, /(click_on.*Destroy this.*)$/, "accept_confirm { \\1 }"

0 commit comments

Comments
 (0)