setup examples to run from default rake

This commit is contained in:
geemus 2011-01-04 16:57:10 -08:00
parent 763d7940c4
commit 902908b843
3 changed files with 7 additions and 1 deletions

View File

@ -45,7 +45,13 @@ end
task :default => :test
task :test do
task :examples do
sh("export FOG_MOCK=false && bundle exec shindont examples")
# some don't provide mocks so we'll leave this out for now
# sh("export FOG_MOCK=true && bundle exec shindont examples")
end
task :test => :examples do
sh("export FOG_MOCK=true && bundle exec spec spec") &&
sh("export FOG_MOCK=true && bundle exec shindont tests") &&
sh("export FOG_MOCK=false && bundle exec spec spec") &&