incubator-deltacloud-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From lut...@apache.org
Subject svn commit: r962360 - /incubator/deltacloud/trunk/client/Rakefile
Date Thu, 08 Jul 2010 23:49:13 GMT
Author: lutter
Date: Thu Jul  8 23:49:12 2010
New Revision: 962360

URL: http://svn.apache.org/viewvc?rev=962360&view=rev
Log:
Generate Mock fixtures without needind RSpec installed.

Modified:
    incubator/deltacloud/trunk/client/Rakefile

Modified: incubator/deltacloud/trunk/client/Rakefile
URL: http://svn.apache.org/viewvc/incubator/deltacloud/trunk/client/Rakefile?rev=962360&r1=962359&r2=962360&view=diff
==============================================================================
--- incubator/deltacloud/trunk/client/Rakefile (original)
+++ incubator/deltacloud/trunk/client/Rakefile Thu Jul  8 23:49:12 2010
@@ -16,7 +16,6 @@
 # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301  USA
 
 require 'rake/gempackagetask'
-require 'spec/rake/spectask'
 
 load 'deltacloud-client.gemspec'
 
@@ -29,9 +28,12 @@ Rake::GemPackageTask.new(@spec) do |pkg|
   pkg.need_tar = true
 end
 
-desc "Run all examples"
-Spec::Rake::SpecTask.new('spec') do |t|
-  t.spec_files = FileList['specs/**/*_spec.rb']
+if Gem.available?('rspec')
+  require 'spec/rake/spectask'
+  desc "Run all examples"
+  Spec::Rake::SpecTask.new('spec') do |t|
+    t.spec_files = FileList['specs/**/*_spec.rb']
+  end
 end
 
 desc "Setup Fixtures"



Mime
View raw message