aboutsummaryrefslogtreecommitdiffstats
path: root/railties/test/generators/task_generator_test.rb
blob: 9399be95103c8b039fcdc161bbce8e35271393d9 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
require 'generators/generators_test_helper'
require 'rails/generators/rails/task/task_generator'

class TaskGeneratorTest < Rails::Generators::TestCase
  include GeneratorsTestHelper
  arguments %w(feeds foo bar)

  def test_task_is_created
    run_generator
    assert_file "lib/tasks/feeds.rake", /namespace :feeds/
  end
end