Skip to content
Browse files

Renamed tasks. Added default. Default task ignores tests that need re…

…written.
  • Loading branch information...
1 parent 86fc52f commit 78077b1a600ef28f9101860fbb08351948b5669a @jimlindstrom committed Sep 3, 2013
Showing with 15 additions and 4 deletions.
  1. +15 −4 Rakefile
View
19 Rakefile
@@ -1,10 +1,21 @@
#!/usr/bin/env rake
require "bundler/gem_tasks"
-desc "run the specs"
-task :test do
- sh "if git status | grep 'modified:' | grep annual_report >/dev/null; then echo \"\n\nYou should get rid of ~/.finmodeling\"; fi"
- sh "rspec -c -fd -I. -Ispec spec/*spec.rb"
+task :default => "spec:basic"
+task :test => "spec:basic" # to support a legacy task that I've now renamed.
+
+namespace :spec do
+ desc "run the specs (just the well-written ones)"
+ task :basic do
+ sh "if git status | grep 'modified:' | grep annual_report >/dev/null; then echo \"\n\nYou should get rid of ~/.finmodeling\"; fi"
+ sh "rspec -c -fd -I. -Ispec --tag ~outdated spec/*spec.rb"
+ end
+
+ desc "run the specs (including ones that are badly written (depending on certain filings) and need rewritten"
+ task :all do
+ sh "if git status | grep 'modified:' | grep annual_report >/dev/null; then echo \"\n\nYou should get rid of ~/.finmodeling\"; fi"
+ sh "rspec -c -fd -I. -Ispec spec/*spec.rb"
+ end
end
desc "purges anything cached"

0 comments on commit 78077b1

Please sign in to comment.
Something went wrong with that request. Please try again.