blob: fdfbf9031ce2982c206a4dd2debf1202f97761bc (
plain) (
tree)
|
|
require 'abstract_unit'
require 'generators/generators_test_helper'
require 'generators/rails/performance_test/performance_test_generator'
class PerformanceTestGeneratorTest < GeneratorsTestCase
def test_performance_test_skeleton_is_created
run_generator
assert_file "test/performance/performance_test.rb", /class PerformanceTest < ActionController::PerformanceTest/
end
protected
def run_generator(args=["performance"])
silence(:stdout) { Rails::Generators::PerformanceTestGenerator.start args, :root => destination_root }
end
end
|