From 902908b843ebd1ac7b2bc49046fd080c39672069 Mon Sep 17 00:00:00 2001 From: geemus Date: Tue, 4 Jan 2011 16:57:10 -0800 Subject: [PATCH] setup examples to run from default rake --- Rakefile | 8 +++++++- examples/{dns.rb => dns_tests.rb} | 0 examples/{storage.rb => storage_tests.rb} | 0 3 files changed, 7 insertions(+), 1 deletion(-) rename examples/{dns.rb => dns_tests.rb} (100%) rename examples/{storage.rb => storage_tests.rb} (100%) diff --git a/Rakefile b/Rakefile index 036023870..774924481 100644 --- a/Rakefile +++ b/Rakefile @@ -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") && diff --git a/examples/dns.rb b/examples/dns_tests.rb similarity index 100% rename from examples/dns.rb rename to examples/dns_tests.rb diff --git a/examples/storage.rb b/examples/storage_tests.rb similarity index 100% rename from examples/storage.rb rename to examples/storage_tests.rb