public
Description: Pulse adds an action to your rails app that can be used for external health checking
Homepage:
Clone URL: git://github.com/jnewland/pulse.git
(author)
Fri Mar 20 13:24:35 -0700 2009
Jesse Newland (committer)
Mon Jun 08 15:53:44 -0700 2009
pulse / Rakefile
100644 28 lines (25 sloc) 0.741 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
begin
  require 'load_multi_rails_rake_tasks'
  require 'spec'
  require 'spec/rake/spectask'
rescue LoadError
  puts <<-EOS
To use rspec for testing you must install rspec, rspec-rails, and multi_rails gems:
gem install rspec rspec-rails multi_rails
EOS
  exit(0)
end
 
desc "Run the specs under spec/models"
Spec::Rake::SpecTask.new do |t|
  t.spec_opts = ['--options', "spec/spec.opts"]
  t.spec_files = FileList['spec/*_spec.rb']
end
 
# Make spec the default task
# from http://blog.subterfusion.net/2008/rake-hacks-overriding-tasks-quick-binary-run-intelligent-irb/
Rake::TaskManager.class_eval do
  def remove_task(task_name)
    @tasks.delete(task_name.to_s)
  end
end
 
Rake.application.remove_task :default
task :default => :spec