-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathRakefile
32 lines (28 loc) · 986 Bytes
/
Rakefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
# sinatra-rspec
%W{rake rake/testtask rake/rdoctask rcov/rcovtask}.each{|x| require x}
begin
require 'jeweler'
Jeweler::Tasks.new do |gem|
gem.name = "decoct"
gem.summary = "Its a simple gem which creates a project structure for sinatra to work with rspec, ZenTest, RedGreen, Rcov"
gem.email = "[email protected]"
gem.homepage = "http://github.com/andhapp/decoct"
gem.description = "Sinatra Rspec project generator"
gem.authors = ["Anuj Dutta"]
gem.add_dependency 'rspec'
gem.add_dependency 'ZenTest'
gem.add_dependency 'redgreen'
gem.add_dependency 'rcov'
end
Jeweler::GemcutterTasks.new
rescue LoadError
puts "Jeweler not available. Install it with: sudo gem install technicalpickles-jeweler -s http://gems.github.com"
end
desc "rake task to run all the tests"
Rake::TestTask.new do |t|
t.libs << "lib"
t.test_files = FileList['test/**/ts_*.rb']
t.verbose = true
t.ruby_opts = ['-rubygems']
end
task :default => [:test]