public
Description: Rails generators which produce tests using shoulda instead of straight up Test::Unit. Other goodies as well.
Homepage:
Clone URL: git://github.com/technicalpickles/shoulda_generator.git
Tue Jan 06 15:20:34 -0800 2009
commit  5fa7c797038faf5cc9d7fa433b0910006936aa7c
tree    3693c65a32e666ed521b9d2d99d2d7e66cde57d6
parent  eb7281d678d095de00e4f68549806f977b1c944d
shoulda_generator / Rakefile
100644 27 lines (23 sloc) 0.766 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
require 'rake'
require 'rake/testtask'
 
begin
  require 'jeweler'
  Jeweler::Tasks.new do |s|
    s.name = "shoulda_generator"
    s.summary = "Generators which create tests using shoulda"
    s.email = "josh@technicalpickles.com"
    s.homepage = "http://github.com/technicalpickles/shoulda_generator"
    s.description = "Generators which create tests using shoulda"
    s.authors = ["Josh Nichols"]
    s.files = FileList["[A-Z]*", "{rails_generators,lib,test}/**/*"]
  end
rescue LoadError
  puts "Jeweler not available. Install it with: sudo gem install technicalpickles-jeweler -s http://gems.github.com"
end
 
Rake::TestTask.new do |t|
  t.libs << 'lib'
  t.pattern = 'test/**/*_test.rb'
  t.verbose = false
end
 
desc 'Test by default'
task :default => :test