Permalink
Browse files

added a rake task 'specdoc' for running the specs with specdoc format…

…ting
  • Loading branch information...
1 parent 1a229ca commit 7fef4132c80188f768d9341305802a6036478b60 @justinfrench committed Sep 19, 2008
Showing with 7 additions and 0 deletions.
  1. +7 −0 Rakefile
View
@@ -10,6 +10,12 @@ Spec::Rake::SpecTask.new('spec') do |t|
t.spec_files = FileList['spec/**/*_spec.rb']
end
+desc 'Test the formtastic plugin with specdoc formatting and colors'
+Spec::Rake::SpecTask.new('specdoc') do |t|
+ t.spec_files = FileList['spec/**/*_spec.rb']
+ t.spec_opts = ["--format specdoc", "-c"]
+end
+
desc 'Generate documentation for the formtastic plugin.'
Rake::RDocTask.new(:rdoc) do |rdoc|
rdoc.rdoc_dir = 'rdoc'
@@ -18,3 +24,4 @@ Rake::RDocTask.new(:rdoc) do |rdoc|
rdoc.rdoc_files.include('README')
rdoc.rdoc_files.include('lib/**/*.rb')
end
+

0 comments on commit 7fef413

Please sign in to comment.