You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@deltacloud.apache.org by lu...@apache.org on 2010/07/09 01:49:13 UTC
svn commit: r962360 - /incubator/deltacloud/trunk/client/Rakefile
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"