We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9f02036 commit 14767dbCopy full SHA for 14767db
lib/generators/test_unit/scaffold/scaffold_generator.rb
@@ -4,7 +4,7 @@ module TestUnit # :nodoc:
4
module Generators # :nodoc:
5
class ScaffoldGenerator < Base # :nodoc:
6
def fix_system_test
7
- return unless turbo_defined? && options[:system_tests] == "true"
+ return unless turbo_defined? && options[:system_tests]
8
test_file = File.join("test/system", class_path, "#{file_name.pluralize}_test.rb")
9
return unless File.exist?(test_file)
10
gsub_file test_file, /(click_on.*Destroy this.*)$/, "accept_confirm { \\1 }"
0 commit comments