require 'rspec/core/rake_task'

RSpec::Core::RakeTask.new(:spec) do |spec|
  spec.pattern      = './spec/**/*_spec.rb'
  spec.skip_bundler = true
end

RSpec::Core::RakeTask.new(:rcov) do |rcov|
  rcov.pattern    = "./spec/**/*_spec.rb"
  rcov.rcov       = true
  rcov.rcov_opts  = File.read('spec/rcov.opts').split(/\s+/)
end

require 'rspec/core/rake_task'

RSpec::Core::RakeTask.new(:spec => [:clean, :compile]) do |spec|
  spec.pattern      = './spec/**/*_spec.rb'
  spec.skip_bundler = true
end

RSpec::Core::RakeTask.new(:rcov => [:clean, :compile]) do |rcov|
  rcov.pattern    = "./spec/**/*_spec.rb"
  rcov.rcov       = true
  rcov.rcov_opts  = File.read('spec/rcov.opts').split(/\s+/)
end

--- 
+++ 
@@ -1,11 +1,11 @@
 require 'rspec/core/rake_task'
 
-RSpec::Core::RakeTask.new(:spec => [:clean, :compile]) do |spec|
+RSpec::Core::RakeTask.new(:spec) do |spec|
   spec.pattern      = './spec/**/*_spec.rb'
   spec.skip_bundler = true
 end
 
-RSpec::Core::RakeTask.new(:rcov => [:clean, :compile]) do |rcov|
+RSpec::Core::RakeTask.new(:rcov) do |rcov|
   rcov.pattern    = "./spec/**/*_spec.rb"
   rcov.rcov       = true
   rcov.rcov_opts  = File.read('spec/rcov.opts').split(/\s+/)
[data_objects][ci] Fix regression from prev. commit

* Spec task for data_objects doesn't need compilation.

Signed-off-by: Alex Coles <60c6d277a8bd81de7fdde19201bf9c58a3df08f4@alexbcoles.com>
