Skip to content

Commit

Permalink
Step for a Vagrantfile with no adam stuff
Browse files Browse the repository at this point in the history
  • Loading branch information
Peter Souter committed Sep 5, 2014
1 parent fc7b974 commit 501c8d8
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions features/step_definitions/steps.rb
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,22 @@
write_file(script_name, file_content)
end

Given(/^a Vagrantfile with no adam\.provision_url$/) do
file_content = <<EOS
require 'vagrant-adam'
Vagrant.configure("2") do |config|
config.vm.define :ubuntu do |ubuntu|
ubuntu.vm.box = "precise64"
ubuntu.vm.box_url = "http://files.vagrantup.com/precise64.box"
end
end
EOS

# Create file
write_file('Vagrantfile', file_content)
end

Given /^the environment variable (.+) is nil$/ do |variable|
set_env(variable, nil)
end
Expand Down

0 comments on commit 501c8d8

Please sign in to comment.