Permalink
Switch branches/tags
Nothing to show
Find file
Fetching contributors…
Cannot retrieve contributors at this time
21 lines (16 sloc) 387 Bytes
require 'bundler'
Bundler::GemHelper.install_tasks
require "rspec/core/rake_task"
namespace :spec do
types = [:unit]
types.each do |type|
desc "Run #{type} specs only"
RSpec::Core::RakeTask.new(type) do |spec|
spec.pattern = "spec/#{type}/**/*_spec.rb"
end
end
desc "Run All Specs"
task :all => types
end
task :spec => ['spec:all']
task :default => :spec