Class: TestUnit::Generators::ScaffoldGenerator
- Inherits:
-
Base
- Object
- Base
- TestUnit::Generators::ScaffoldGenerator
- Defined in:
- lib/generators/test_unit/scaffold/scaffold_generator.rb
Overview
:nodoc:
Instance Method Summary collapse
Instance Method Details
#fix_system_test ⇒ Object
6 7 8 9 10 11 |
# File 'lib/generators/test_unit/scaffold/scaffold_generator.rb', line 6 def fix_system_test system_test_file = File.join("test/system", class_path, "#{file_name.pluralize}_test.rb") if turbo_defined? && [:system_tests] && File.exist?(system_test_file) gsub_file(system_test_file, /(click_on.*Destroy this.*)$/, "accept_confirm { \\1 }") end end |