Class: Minitest::Generators::FeatureGenerator
- Inherits:
-
Base
- Object
- Base
- Minitest::Generators::FeatureGenerator
- Defined in:
- lib/generators/minitest/feature/feature_generator.rb
Class Method Summary collapse
Instance Method Summary collapse
Class Method Details
.source_root ⇒ Object
8 9 10 |
# File 'lib/generators/minitest/feature/feature_generator.rb', line 8 def self.source_root @_minitest_capybara_source_root ||= File.(File.join(File.dirname(__FILE__), "templates")) end |
Instance Method Details
#create_test_files ⇒ Object
16 17 18 19 20 21 22 |
# File 'lib/generators/minitest/feature/feature_generator.rb', line 16 def create_test_files if [:spec] template "feature_spec.rb", File.join("test/features", class_path, "#{file_name}_test.rb") else template "feature_test.rb", File.join("test/features", class_path, "#{file_name}_test.rb") end end |