mirror of
https://github.com/rails/rails.git
synced 2022-11-09 12:12:34 -05:00
18 lines
443 B
Ruby
18 lines
443 B
Ruby
require "rubygems"
|
|
|
|
begin
|
|
require "spec/rake/spectask"
|
|
rescue LoadError
|
|
desc "Run specs"
|
|
task(:spec) { $stderr.puts '`gem install rspec` to run specs' }
|
|
else
|
|
Spec::Rake::SpecTask.new do |t|
|
|
t.spec_opts = ['--options', "\"#{File.dirname(__FILE__)}/spec/spec.opts\""]
|
|
t.libs << "spec"
|
|
t.warning = true
|
|
t.spec_files = FileList['spec/**/*_spec.rb']
|
|
end
|
|
|
|
desc "Default task is to run specs"
|
|
task :default => :spec
|
|
end
|