Update rake tasks to use rspec 2.
This commit is contained in:
parent
12532c8e37
commit
fa612b194b
11
Rakefile
11
Rakefile
@ -8,16 +8,9 @@ end
|
|||||||
|
|
||||||
task :default => [:test, :spec]
|
task :default => [:test, :spec]
|
||||||
|
|
||||||
begin
|
require 'rspec/core/rake_task'
|
||||||
require 'spec/rake/spectask'
|
|
||||||
|
|
||||||
desc "Run specs"
|
desc "Run specs"
|
||||||
Spec::Rake::SpecTask.new(:spec) do |t|
|
RSpec::Core::RakeTask.new
|
||||||
t.spec_files = FileList["spec/**/*.rb"]
|
|
||||||
end
|
|
||||||
rescue LoadError
|
|
||||||
puts "Spec task can't be loaded. `gem install rspec`"
|
|
||||||
end
|
|
||||||
|
|
||||||
begin
|
begin
|
||||||
require 'jeweler'
|
require 'jeweler'
|
||||||
|
Loading…
Reference in New Issue
Block a user