D7net
Home
Console
Upload
information
Create File
Create Folder
About
Tools
:
/
opt
/
td-agent
/
embedded
/
lib
/
ruby
/
gems
/
2.1.0
/
gems
/
draper-1.4.0
/
lib
/
draper
/
tasks
/
Filename :
test.rake
back
Copy
require 'rake/testtask' test_task = if Rails.version.to_f < 3.2 require 'rails/test_unit/railtie' Rake::TestTask else require 'rails/test_unit/sub_test_task' Rails::SubTestTask end namespace :test do test_task.new(:decorators => "test:prepare") do |t| t.libs << "test" t.pattern = "test/decorators/**/*_test.rb" end end if Rake::Task.task_defined?('test:run') Rake::Task['test:run'].enhance do Rake::Task['test:decorators'].invoke end end