Sha256: 2e910fbc0734eb21cda95a66a83a17f93ae755d6d98ea5e40c84a91dffe8a3c3

Contents?: true

Size: 624 Bytes

Versions: 2

Compression:

Stored size: 624 Bytes

Contents

require "bundler/gem_tasks"

task :default => :"specs:all"

namespace :specs do
  require "rspec/core/rake_task"

  desc "Run all specs"
  RSpec::Core::RakeTask.new(:all)

  # generate tasks for each *_spec.rb file in the root spec folder
  exceptNCov = []
  FileList["spec/*_spec.rb"].each do |fname|
    spec = $1 if /spec\/(.+)_spec\.rb/ =~ fname
    exceptNCov << spec unless /ncover|ndepend/ =~ spec
    desc "Run the #{spec} spec"
    RSpec::Core::RakeTask.new spec do |t|
      t.pattern = "spec/#{spec}*_spec.rb"
    end
  end

  desc "Run specs:all except :ncover, :ndepend"
  task :except_ncover => exceptNCov
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
albacore-1.0.0.rc.2 Rakefile
albacore-1.0.0.rc.1 Rakefile