Permalink
Switch branches/tags
Nothing to show
Find file
Fetching contributors…
Cannot retrieve contributors at this time
25 lines (19 sloc) 525 Bytes
$:.unshift File.expand_path('../lib', __FILE__)
begin
require 'rspec/core/rake_task'
desc 'Run specs'
RSpec::Core::RakeTask.new do |t|
t.rspec_opts = %w(-fs --color)
end
rescue LoadError
task :spec do
abort 'Run `rake spec:deps` to be able to run the specs'
end
namespace :spec do
desc 'Ensure spec dependencies are installed'
task :deps do
sh "gem list rspec | (grep 'rspec (2.0' 1> /dev/null) || gem install rspec --no-ri --no-rdoc"
end
end
end
task :default => :spec