lib/baldwin/gem_tasks.rb in baldwin-0.2.0 vs lib/baldwin/gem_tasks.rb in baldwin-0.2.1
- old
+ new
@@ -1,7 +1,8 @@
require 'appraisal'
require 'baldwin'
+require 'rspec/core/rake_task'
include Rake::DSL
namespace :baldwin do
@@ -31,5 +32,13 @@
desc "Install testing awesomeness"
task :install do
Baldwin::Installer.start
end
end
+
+RSpec::Core::RakeTask.new :rspec => [ :'baldwin:env', :'baldwin:rails' ]
+
+desc "Run specs for all supported rails versions"
+task :spec => :rspec
+
+desc "Default: Clean, install dependencies, and run specs"
+task :default => [ :'baldwin:clean', :'appraisal:install', :spec ]