deltacloud-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From David Lutterkort <lut...@redhat.com>
Subject Re: [PATCH core 2/6] Client: Removed unused rake tasks and added test task
Date Thu, 09 Aug 2012 23:24:30 GMT
On Wed, 2012-08-08 at 14:54 +0200, mfojtik@redhat.com wrote:
> From: Michal Fojtik <mfojtik@redhat.com>
> 
> * Fixtures generators are not needed
> * Removed task for deltacloudc
> * Added minitest task
> 
> Signed-off-by: Michal fojtik <mfojtik@redhat.com>

You should also remove the rspec stuff:

diff --git a/client/Rakefile b/client/Rakefile
index 9ced4ad..255f735 100644
--- a/client/Rakefile
+++ b/client/Rakefile
@@ -31,23 +31,6 @@ Gem::PackageTask.new(spec) do |pkg|
   pkg.need_tar = true
 end
 
-def available?(name)
-  Gem::Specification.find_by_name(name)
-rescue Gem::LoadError
-  false
-rescue
-  Gem.available?(name)
-end
-
-if available?('rspec')
-  require 'rspec/core/rake_task'
-  desc "Run all examples"
-  RSpec::Core::RakeTask.new('spec') do |t|
-    t.pattern = FileList['specs/**/*_spec.rb']
-    t.rspec_opts = [ "--format", "nested", "--color"]
-  end
-end
-
 desc "Reinstall gem"
 task :reinstall do
   puts %x{gem uninstall deltacloud-client --all -I -x}



Mime
View raw message