public
Description: Gift Tracking Website using Sinatra, Sequel, and Scaffolding Extensions
Homepage:
Clone URL: git://github.com/jeremyevans/giftsmas.git
jeremyevans (author)
Fri Jun 26 08:27:19 -0700 2009
commit  f45269c9fb967414864f87ac4cac717899bcd08b
tree    79a60aca37cc842835c7e3d3ffb857c95c72a241
parent  7965966f0d0232d809c4cbbe1789648e25ddfe52
giftsmas / Rakefile
100644 25 lines (21 sloc) 0.486 kb
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
require "rake"
require "rake/clean"
require "spec/rake/spectask"
 
CLEAN.include ["spec/style.log"]
 
desc "Run unit tests"
Spec::Rake::SpecTask.new("spec") do |t|
  t.spec_files = ["spec/unit.rb"]
end
task :default=>[:spec]
 
desc "Run integration tests"
task :integration do
  ENV['GIFTSMAS_TEST'] = '1'
  sh %{echo > spec/style.log}
  sh %{style -c spec/style.yaml start}
  begin
    sleep 1
    sh %{spec spec/integration.rb}
  ensure
    sh %{style -c spec/style.yaml stop}
  end
end