Sha256: adaf01b528f88ca8183d4f60e142611913d03f9fd11f81f0e6ce1003a5559869

Contents?: true

Size: 653 Bytes

Versions: 6

Compression:

Stored size: 653 Bytes

Contents

require 'bundler/setup'
Bundler::GemHelper.install_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

6 entries across 6 versions & 1 rubygems

Version Path
albacore-0.3.6 Rakefile
albacore-0.3.5 Rakefile
albacore-0.3.4 Rakefile
albacore-0.3.3 Rakefile
albacore-0.3.2 Rakefile
albacore-0.3.1 Rakefile