Sha256: d22b58df66e82cdf44af9ed958184ed2a1c968707bd5794ff235ff4b09c8594e
Contents?: true
Size: 984 Bytes
Versions: 17
Compression:
Stored size: 984 Bytes
Contents
# encoding: utf-8 require 'rdoc/task' RDoc::Task.new do |rdoc| rdoc.rdoc_dir = 'rdoc' rdoc.rdoc_files.include('README.md') rdoc.rdoc_files.include('CONTRIBUTING.md') rdoc.rdoc_files.include('CHANGELOG.md') rdoc.rdoc_files.include('lib/**/*.rb') rdoc.options.push '-f', 'hanna' rdoc.markup = 'markdown' end # RSpec tasks require 'rspec/core' require "rspec/core/rake_task" RSpec::Core::RakeTask.new(:spec) do |task| integration_exclusions = [] begin require 'sidekiq/testing' rescue LoadError puts "Skipping sidekiq tests, missing dependencies" integration_exclusions << 'sidekiq' end begin require 'delayed_job' rescue LoadError puts "Skipping delayed_job tests, missing dependencies" integration_exclusions << 'delayed_job' end if integration_exclusions.length > 0 pattern = integration_exclusions.join(',') task.rspec_opts = " --exclude-pattern **/integrations/{#{pattern}}_spec.rb" end end task :default => :spec
Version data entries
17 entries across 17 versions & 1 rubygems