class Minitest::Generators::FeatureGenerator

Public Class Methods

source_root() click to toggle source
# File lib/generators/minitest/feature/feature_generator.rb, line 8
def self.source_root
  @_minitest_capybara_source_root ||= File.expand_path(File.join(File.dirname(__FILE__), "templates"))
end

Public Instance Methods

create_test_files() click to toggle source
# File lib/generators/minitest/feature/feature_generator.rb, line 16
def create_test_files
  if options[: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