public
Description: One line tests without the smells.
Homepage:
Clone URL: git://github.com/jamesgolick/zebra.git
zebra / Rakefile
100644 50 lines (42 sloc) 1.236 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
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
require 'rake'
require 'rake/testtask'
require 'rake/rdoctask'
 
begin
  require 'jeweler'
  Jeweler::Tasks.new do |s|
    s.name = "zebra"
    s.summary = "TODO"
    s.email = "joshngru@gmail.com"
    s.homepage = "http://github.com/joshng/zebra"
    s.description = "TODO"
    s.authors = ["James Golick", "Josh Gruenberg"]
 
    s.add_dependency "jeremymcanally-matchy", ">=0.0.1"
    s.add_dependency "ParseTree", ">=3.0.2"
    s.add_dependency "ruby2ruby", ">=1.2.1"
  end
rescue LoadError
  puts "Jeweler not available. Install it with: sudo gem install technicalpickles-jeweler -s http://gems.github.com"
end
 
Rake::TestTask.new(:context) do |t|
  t.libs << 'lib'
  t.pattern = 'test/context/**/*_test.rb'
  t.verbose = false
end
 
Rake::TestTask.new(:shoulda) do |t|
  t.libs << 'lib'
  t.pattern = 'test/shoulda/**/*_test.rb'
  t.verbose = false
end
 
Rake::TestTask.new(:else) do |t|
  t.libs << 'lib'
  t.pattern = 'test/else/**/*_test.rb'
  t.verbose = false
end
 
Rake::RDocTask.new do |rdoc|
  rdoc.rdoc_dir = 'rdoc'
  rdoc.title = 'zebra'
  rdoc.options << '--line-numbers' << '--inline-source'
  rdoc.rdoc_files.include('README*')
  rdoc.rdoc_files.include('lib/**/*.rb')
end
 
task :default => [:context, :shoulda, :else]