aboutsummaryrefslogblamecommitdiffstats
path: root/railties/test/generators/performance_test_generator_test.rb
blob: d19128f79ae9766c2209548d3c02505900b88219 (plain) (tree)
1
2
3
4
5
6
7
8
9

                                           
                                                                            




                                                       
                                                                                                                   




                                           
                                                                                                                        


       
require 'abstract_unit'
require 'generators/generators_test_helper'
require 'rails/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, :destination_root => destination_root }
    end

end