Rakefile in docker-spoon-0.8.0 vs Rakefile in docker-spoon-1.0.0

- old
+ new

@@ -22,40 +22,30 @@ else puts "Found in #{path}" end end require 'bundler' +require 'rspec/core/rake_task' require 'rake/clean' - -require 'rake/testtask' - require 'cucumber' require 'cucumber/rake/task' -gem 'rdoc' # we need the installed RDoc gem, not the system one -require 'rdoc/task' include Rake::DSL Bundler::GemHelper.install_tasks - -Rake::TestTask.new do |t| - t.pattern = 'test/tc_*.rb' -end - - CUKE_RESULTS = 'results.html' CLEAN << CUKE_RESULTS Cucumber::Rake::Task.new(:features) do |t| t.cucumber_opts = "features --format html -o #{CUKE_RESULTS} --format pretty --no-source -x" t.fork = false end -Rake::RDocTask.new do |rd| - - rd.main = "README.rdoc" - - rd.rdoc_files.include("README.rdoc","lib/**/*.rb","bin/**/*") +task(:testsetup) do + cmd = 'bundle exec bin/spoon --url tcp://127.0.0.1:2375 --build --builddir docker --image spoon_test' + sh(cmd) end -task :default => [:test,:features] +RSpec::Core::RakeTask.new(:spec) + +task :default => [:features]