File: Rakefile

package info (click to toggle)
ruby-shoulda-context 1.2.0-1
  • links: PTS, VCS
  • area: main
  • in suites: buster, jessie, jessie-kfreebsd, stretch
  • size: 352 kB
  • ctags: 143
  • sloc: ruby: 1,339; makefile: 2
file content (21 lines) | stat: -rw-r--r-- 466 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
require 'bundler/setup'
require 'bundler/gem_tasks'
require 'rake/testtask'
require 'appraisal'

$LOAD_PATH.unshift("lib")
load 'tasks/shoulda.rake'

Rake::TestTask.new do |t|
  t.libs << 'lib' << 'test'
  t.pattern = 'test/**/*_test.rb'
  t.verbose = false
end

desc 'Test the plugin under all supported Rails versions.'
task :all => ['appraisal:cleanup', 'appraisal:install'] do
  exec('rake appraisal test')
end

desc 'Default: run tests'
task :default => [:all]