mirror of
https://github.com/samsonjs/rack-attack.git
synced 2026-03-25 09:25:49 +00:00
Add rake tasks `test:units` and `test:integration` Run integration tests by default on TravisCi. Run memcached and redis on TravisCi.
18 lines
348 B
Ruby
18 lines
348 B
Ruby
require "rubygems"
|
|
require "bundler/setup"
|
|
require 'rake/testtask'
|
|
|
|
namespace :test do
|
|
Rake::TestTask.new(:units) do |t|
|
|
t.pattern = "spec/*_spec.rb"
|
|
end
|
|
|
|
Rake::TestTask.new(:integration) do |t|
|
|
t.pattern = "spec/integration/*_spec.rb"
|
|
end
|
|
end
|
|
|
|
desc 'Run tests'
|
|
task :test => %w[test:units test:integration]
|
|
|
|
task :default => :test
|