Sha256: 472ec8deb4ae5f8b125395730ae648fe7de5d1bf6debddab59ed3d878f62da66

Contents?: true

Size: 470 Bytes

Versions: 9

Compression:

Stored size: 470 Bytes

Contents

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

Version data entries

9 entries across 9 versions & 2 rubygems

Version Path
draper-2.0.0 lib/draper/tasks/test.rake
draper-1.4.0 lib/draper/tasks/test.rake
draper-1.3.1 lib/draper/tasks/test.rake
draper-1.3.0 lib/draper/tasks/test.rake
draper-1.2.1 lib/draper/tasks/test.rake
draper-1.2.0 lib/draper/tasks/test.rake
jamesgolick-draper-1.1.1a lib/draper/tasks/test.rake
draper-1.1.0 lib/draper/tasks/test.rake
draper-1.0.0 lib/draper/tasks/test.rake