add default task for rspec

This commit is contained in:
John McAliley 2012-03-11 21:38:05 -04:00
parent 3a7663e01c
commit 594ffd6916
1 changed files with 7 additions and 16 deletions

View File

@ -1,25 +1,16 @@
#!/usr/bin/env rake #!/usr/bin/env rake
require 'bundler' require 'bundler/setup'
require 'rspec/core/rake_task'
Bundler::GemHelper.install_tasks Bundler::GemHelper.install_tasks
begin RSpec::Core::RakeTask.new do |task|
Bundler.setup(:default, :development) task.pattern = "./test_app/spec/**/*_spec.rb"
rescue Bundler::BundlerError => e
$stderr.puts e.message
$stderr.puts "Run `bundle install` to install missing gems"
exit e.status_code
end end
require 'rdoc/task' task :test => :spec
Rake::RDocTask.new do |rdoc| task :default => :spec
version = File.exist?('VERSION') ? File.read('VERSION') : ""
rdoc.rdoc_dir = 'rdoc'
rdoc.title = "impressionist #{version}"
rdoc.rdoc_files.include('README*')
rdoc.rdoc_files.include('lib/**/*.rb')
end
namespace :impressionist do namespace :impressionist do
require File.dirname(__FILE__) + "/lib/impressionist/bots" require File.dirname(__FILE__) + "/lib/impressionist/bots"