Top Level Namespace

Defined Under Namespace

Modules: Test Classes: HelperTestCaseController, Object

Instance Method Summary collapse

Instance Method Details

#define_test_task(test_type) ⇒ Object



3
4
5
6
7
8
9
10
# File 'lib/test/rails/rake_tasks.rb', line 3

def define_test_task(test_type)
  desc "Run the #{test_type} tests in test/#{test_type}s"
  Rake::TestTask.new "#{test_type}s" => [ 'db:test:prepare' ] do |t|
    t.libs << 'test'
    t.pattern = "test/#{test_type}s/**/*_test.rb"
    t.verbose = true
  end
end