Skip to content
Newer
Older
100644 28 lines (21 sloc) 387 Bytes
2ce9c66 @schacon starting a test suite
authored
1 require 'rake/testtask'
2
70ba502 @defunkt gemify showoff
defunkt authored
3 begin
4 require 'mg'
5 rescue LoadError
6 abort "Please `gem install mg`"
7 end
8
9 MG.new("showoff.gemspec")
2ce9c66 @schacon starting a test suite
authored
10
11 #
12 # Tests
13 #
14
15 task :default => :test
16
17 desc "Run tests"
18 task :turn do
19 suffix = "-n #{ENV['TEST']}" if ENV['TEST']
20 sh "turn test/*_test.rb #{suffix}"
21 end
22
23 Rake::TestTask.new do |t|
24 t.libs << 'lib'
25 t.pattern = 'test/**/*_test.rb'
26 t.verbose = false
27 end
Something went wrong with that request. Please try again.