Sha256: d7418d5582f28aa4174daec78ac7794c6266bb952a44abfef7fcdae6e6eea8df

Contents?: true

Size: 787 Bytes

Versions: 6

Compression:

Stored size: 787 Bytes

Contents

require 'bundler'
require 'rspec'
require 'rspec/core/rake_task'
Bundler::GemHelper.install_tasks

desc 'Default: Run specs'
task :default => :spec

desc 'Run specs'
RSpec::Core::RakeTask.new(:spec) do |spec|
  # spec.libs << 'lib' << 'spec'
  # spec.spec_files = FileList['spec/**/*_spec.rb']
  # spec.rcov = true
  # spec.rcov_opts = %w{--rails --exclude osx\/objc,gems\/,spec\/,features\/}
end

task :cleanup_rcov_files do
  rm_rf 'coverage'
end

desc "Run all examples using rcov"
RSpec::Core::RakeTask.new :rcov => :cleanup_rcov_files do |t|
  t.rcov = true
  t.rcov_opts =  %[-Ilib -Ispec --exclude "gems/*,features"]
  t.rcov_opts << %[--text-report --sort coverage --html]
end

# desc  "Run all specs with rcov"
# RSpec::Core::RakeTask.new(:rcov => spec_prereq) do |t|
#   
# end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
firewall_constraint-0.0.9 Rakefile
firewall_constraint-0.0.8 Rakefile
firewall_constraint-0.0.7 Rakefile
firewall_constraint-0.0.6 Rakefile
firewall_constraint-0.0.5 Rakefile
firewall_constraint-0.0.4 Rakefile