aboutsummaryrefslogtreecommitdiffstats
path: root/railties/test/generators/integration_test_generator_test.rb
blob: 190b28012caedc46c4fccc9598855e0cc00433e9 (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/integration_test/integration_test_generator'

class IntegrationTestGeneratorTest < GeneratorsTestCase

  def test_integration_test_skeleton_is_created
    run_generator
    assert_file "test/integration/integration_test.rb", /class IntegrationTest < ActionController::IntegrationTest/
  end

  protected

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

end