added basic Rakefile
This commit is contained in:
parent
a12ad9c4ea
commit
60dfd4e169
15
Rakefile
Normal file
15
Rakefile
Normal file
|
@ -0,0 +1,15 @@
|
||||||
|
require 'rake'
|
||||||
|
require 'spec/rake/spectask'
|
||||||
|
|
||||||
|
desc "Run all specs"
|
||||||
|
Spec::Rake::SpecTask.new('spec') do |t|
|
||||||
|
t.spec_files = FileList['spec/*_spec.rb']
|
||||||
|
end
|
||||||
|
|
||||||
|
desc "Print specdocs"
|
||||||
|
Spec::Rake::SpecTask.new(:doc) do |t|
|
||||||
|
t.spec_opts = ["--format", "specdoc", "--dry-run"]
|
||||||
|
t.spec_files = FileList['spec/*_spec.rb']
|
||||||
|
end
|
||||||
|
|
||||||
|
task :default => :spec
|
Loading…
Reference in a new issue