public
Description: Tools to make stubbing Ruby ORM models just a little bit easier
Homepage:
Clone URL: git://github.com/dchelimsky/stubble.git
stubble / Rakefile
100644 40 lines (31 sloc) 1.154 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
require 'hoe'
require File.dirname(__FILE__) + '/lib/stubble'
 
Hoe.spec('stubble') do |p|
  developer 'David Chelimsky','dchelimsky@gmail.com'
  p.version = Stubble::VERSION
  p.summary = "stubble-#{Stubble::VERSION}"
  p.description = 'Tools to make stubbing ORM models just a little bit easier.'
  p.url = 'http://github.com/dchelimsky/stubble'
  p.extra_deps = [['activerecord']]
  p.extra_dev_deps = [["rspec",">= 1.2.4"]]
  p.readme_file = 'README.rdoc'
  p.history_file = 'History.rdoc'
end
 
Rake.application.instance_variable_get('@tasks').delete('default')
 
task :default => ["spec:rspec","spec:mocha","spec:rr","spec:flexmock"]
 
namespace :update do
  desc "update the manifest"
  task :manifest do
    system %q[touch Manifest.txt; rake check_manifest | grep -v "(in " | patch]
  end
end
 
namespace :spec do
  ['mocha','rr','flexmock','rspec'].each do |framework|
    desc "using #{framework}"
    task framework do
      ENV['STUB_FRAMEWORK'] = framework
      puts "************************************\n** running specs against #{ENV['STUB_FRAMEWORK']}"
      system 'spec spec'
    end
  end
end