public
Description: Create PDFs from Cucumber features and scenarios for printing
Homepage: http://github.com/brynary/features2cards
Clone URL: git://github.com/brynary/features2cards.git
brynary (author)
Mon Nov 09 11:35:43 -0800 2009
commit  3a825e80574cfe498dc034396b3a74536a7fe551
tree    9361d64f519aa8be3c276a1c4ac8156f9e935a50
parent  347f5f4e8608773b4108c37557a720223f521210
features2cards / Rakefile
100644 32 lines (25 sloc) 0.722 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
26
27
28
29
30
31
32
require 'rubygems'
require "rake/gempackagetask"
require "rake/clean"
require "spec/rake/spectask"
require 'cucumber/rake/task'
 
$:.unshift('lib')
require 'features2cards'
 
desc "Run the Features2Cards specs"
Spec::Rake::SpecTask.new do |t|
  t.spec_opts = ['--options', "spec/spec.opts"]
  t.spec_files = FileList['spec/**/*_spec.rb']
  t.rcov = ENV['RCOV']
  t.rcov_opts = %w{--exclude osx\/objc,gems\/,spec\/}
  t.verbose = true
end
 
Cucumber::Rake::Task.new(:features) do |t|
  t.cucumber_opts = "--format pretty"
end
 
namespace :features do
  Cucumber::Rake::Task.new(:rcov) do |t|
    t.rcov = true
    t.rcov_opts = %w{--rails --exclude osx\/objc,gems\/,spec\/}
    t.rcov_opts << %[-o "features_rcov"]
  end
end