Rakefile in vagrant-aws-0.0.1 vs Rakefile in vagrant-aws-0.1.0

- old
+ new

@@ -1,10 +1,21 @@ -require 'bundler/gem_tasks' -require 'rake/testtask' +require 'rubygems' +require 'bundler/setup' +require 'rspec/core/rake_task' -task :default => :test +# Immediately sync all stdout so that tools like buildbot can +# immediately load in the output. +$stdout.sync = true +$stderr.sync = true -Rake::TestTask.new do |t| - t.libs << "test" - t.pattern = 'test/**/*_test.rb' -end +# Change to the directory of this file. +Dir.chdir(File.expand_path("../", __FILE__)) +# This installs the tasks that help with gem creation and +# publishing. +Bundler::GemHelper.install_tasks + +# Install the `spec` task so that we can run tests. +RSpec::Core::RakeTask.new + +# Default task is to run the unit tests +task :default => "spec"