Sha256: 5893bc317a8609055ac2c20ac83130624122656fe63a41ec544d121cc08f62ee

Contents?: true

Size: 519 Bytes

Versions: 5

Compression:

Stored size: 519 Bytes

Contents

load 'rails/test_unit/testing.rake'

namespace :workarea do
  namespace :test do
    desc 'Generate Workarea API Documentation'
    task api_docs: :'workarea:prepare' do
      roots = [Workarea::Core::Engine.root] +
                Workarea::Plugin.installed.map(&:root) +
                [Rails.root]

      ENV['GENERATE_API_DOCS'] = 'true'

      Rails::TestUnit::Runner.rake_run(
        roots
          .map { |r| FileList["#{r}/test/documentation/**/*_test.rb"] }
          .reduce(&:+)
      )
    end
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
workarea-api-4.5.6 lib/tasks/docs.rake
workarea-api-4.5.5 lib/tasks/docs.rake
workarea-api-4.5.4 lib/tasks/docs.rake
workarea-api-4.5.3 lib/tasks/docs.rake
workarea-api-4.5.2 lib/tasks/docs.rake