From dbfce21e05fc3a04cf3df4f1f1b06fb85a5b7897 Mon Sep 17 00:00:00 2001 From: Mitchell Hashimoto Date: Thu, 5 Dec 2013 13:19:15 -0800 Subject: [PATCH] Start acceptance test config stuff --- .gitignore | 1 + Gemfile | 2 ++ tasks/test.rake | 1 + test/acceptance/base.rb | 1 + vagrant-spec.config.example.rb | 4 ++++ 5 files changed, 9 insertions(+) create mode 100644 test/acceptance/base.rb create mode 100644 vagrant-spec.config.example.rb diff --git a/.gitignore b/.gitignore index 56ad3f2b5..85c6ab03b 100644 --- a/.gitignore +++ b/.gitignore @@ -6,6 +6,7 @@ acceptance_config.yml boxes/* /Vagrantfile /.vagrant +/vagrant-spec.config.rb # Bundler/Rubygems *.gem diff --git a/Gemfile b/Gemfile index c80ee3697..309e871f0 100644 --- a/Gemfile +++ b/Gemfile @@ -1,3 +1,5 @@ source "http://rubygems.org" gemspec + +gem 'vagrant-spec', path: "../vagrant-spec" diff --git a/tasks/test.rake b/tasks/test.rake index e0f7598dc..da984db0d 100644 --- a/tasks/test.rake +++ b/tasks/test.rake @@ -13,6 +13,7 @@ namespace :test do end RSpec::Core::RakeTask.new(:acceptance) do |t| + $: << File.expand_path("../test/acceptance", __FILE__) t.pattern = "test/acceptance/**/*_test.rb" end end diff --git a/test/acceptance/base.rb b/test/acceptance/base.rb new file mode 100644 index 000000000..3d4f00396 --- /dev/null +++ b/test/acceptance/base.rb @@ -0,0 +1 @@ +require "vagrant-testlib/acceptance" diff --git a/vagrant-spec.config.example.rb b/vagrant-spec.config.example.rb new file mode 100644 index 000000000..24c42e2df --- /dev/null +++ b/vagrant-spec.config.example.rb @@ -0,0 +1,4 @@ +Vagrant::Spec::Acceptance.configure do |c| + c.provider "virtualbox", + box_basic: "/Users/mitchellh/Downloads/package.box" +end