Skip to content
Fetching contributors…
Cannot retrieve contributors at this time
25 lines (19 sloc) 615 Bytes
require "bundler/setup"
require "bundler/gem_tasks"
require "rspec/core/rake_task"
task :default => :spec
task :spec => %w(spec:units spec:functionals)
namespace :spec do
desc "Run RSpec specs with code coverate analysis"
RSpec::Core::RakeTask.new(:cov) do |spec|
spec.rspec_opts = "--format nested --format SpecCoverage"
end
desc "Run RSpec unit specs"
RSpec::Core::RakeTask.new(:units) do |spec|
spec.pattern = "spec/unit/**/*_spec.rb"
end
desc "Run RSpec functional specs"
RSpec::Core::RakeTask.new(:functionals) do |spec|
spec.pattern = "spec/functional/**/*_spec.rb"
end
end
Something went wrong with that request. Please try again.