Sha256: 13915268c1fb10ea39c4fe8df88547750a854dc8026121a0fbdd56f801e2bd75

Contents?: true

Size: 498 Bytes

Versions: 3

Compression:

Stored size: 498 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 Rails.version.to_f < 4.2 && Rake::Task.task_defined?('test:run')
  Rake::Task['test:run'].enhance do
    Rake::Task['test:decorators'].invoke
  end
end

Version data entries

3 entries across 3 versions & 3 rubygems

Version Path
draper_new-3.0.0 lib/draper/tasks/test.rake
sc_core-0.0.7 test/dummy/vendor/bundle/ruby/2.2.0/gems/draper-2.1.0/lib/draper/tasks/test.rake
draper-2.1.0 lib/draper/tasks/test.rake