aboutsummaryrefslogtreecommitdiffstats
path: root/railties/test/generators/performance_test_generator_test.rb
blob: 0a92bb587bfe4662117cdfbe7f7122e985cb50ec (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
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"
  end

  protected

    def run_generator(args=["performance"])
      silence(:stdout) { Rails::Generators::PerformanceTestGenerator.start args, :root => destination_root }
    end

end