Sha256: 9bce360a875bbcabef481a97500b0f43f5b6c74129dea4b2fda8aa23b2911031

Contents?: true

Size: 1.15 KB

Versions: 58

Compression:

Stored size: 1.15 KB

Contents

shared_examples "provider/triggers" do |provider, options|
  if !options[:box]
    raise ArgumentError,
      "box option must be specified for provider: #{provider}"
  end

  include_context "acceptance"

  before do
    environment.skeleton("triggers-basic")
    assert_execute("vagrant", "box", "add", "box", options[:box])
    #assert_execute("vagrant", "up", "--provider=#{provider}")
  end

  it "prints a message before and after up" do
    result = execute("vagrant", "up", "--provider=#{provider}")
    expect(result).to exit_with(0)
    expect(result.stdout).to match(/Acceptance/)
    expect(result.stdout).to match(/Testing 1 2 3.../)
    expect(result.stdout).to match(/Hello before up/)
    expect(result.stdout).to match(/Hello after up/)
  end

  it "prints a message before and after destroy" do
    result = execute("vagrant", "destroy", "-f")
    expect(result).to exit_with(0)
    expect(result.stdout).to match(/DESTROY!!/)
    expect(result.stdout).to match(/Destroyed/)
    expect(result.stdout).to match(/Testing 1 2 3.../)
    expect(result.stdout).to match(/Hello before destroy/)
    expect(result.stdout).to match(/Hello after destroy/)
  end
end

Version data entries

58 entries across 18 versions & 1 rubygems

Version Path
vagrant-unbundled-2.2.14.0 vendor/bundle/ruby/2.6.0/bundler/gems/vagrant-spec-abfc34474d12/acceptance/triggers/triggers_basic_spec.rb
vagrant-unbundled-2.2.14.0 vendor/bundle/ruby/2.7.0/bundler/gems/vagrant-spec-148cb63d6d06/acceptance/triggers/triggers_basic_spec.rb
vagrant-unbundled-2.2.14.0 vendor/bundle/ruby/2.7.0/bundler/gems/vagrant-spec-93c587f3c98a/acceptance/triggers/triggers_basic_spec.rb
vagrant-unbundled-2.2.14.0 vendor/bundle/ruby/2.7.0/bundler/gems/vagrant-spec-abfc34474d12/acceptance/triggers/triggers_basic_spec.rb
vagrant-unbundled-2.2.14.0 vendor/bundle/ruby/2.7.0/bundler/gems/vagrant-spec-b6b56c8b8135/acceptance/triggers/triggers_basic_spec.rb
vagrant-unbundled-2.2.10.0 vendor/bundle/ruby/2.7.0/bundler/gems/vagrant-spec-93c587f3c98a/acceptance/triggers/triggers_basic_spec.rb
vagrant-unbundled-2.2.10.0 vendor/bundle/ruby/2.7.0/bundler/gems/vagrant-spec-148cb63d6d06/acceptance/triggers/triggers_basic_spec.rb
vagrant-unbundled-2.2.10.0 vendor/bundle/ruby/2.6.0/bundler/gems/vagrant-spec-abfc34474d12/acceptance/triggers/triggers_basic_spec.rb
vagrant-unbundled-2.2.10.0 vendor/bundle/ruby/2.7.0/bundler/gems/vagrant-spec-abfc34474d12/acceptance/triggers/triggers_basic_spec.rb
vagrant-unbundled-2.2.9.0 vendor/bundle/ruby/2.7.0/bundler/gems/vagrant-spec-abfc34474d12/acceptance/triggers/triggers_basic_spec.rb
vagrant-unbundled-2.2.9.0 vendor/bundle/ruby/2.7.0/bundler/gems/vagrant-spec-148cb63d6d06/acceptance/triggers/triggers_basic_spec.rb
vagrant-unbundled-2.2.9.0 vendor/bundle/ruby/2.6.0/bundler/gems/vagrant-spec-abfc34474d12/acceptance/triggers/triggers_basic_spec.rb
vagrant-unbundled-2.2.8.0 vendor/bundle/ruby/2.6.0/bundler/gems/vagrant-spec-abfc34474d12/acceptance/triggers/triggers_basic_spec.rb
vagrant-unbundled-2.2.8.0 vendor/bundle/ruby/2.7.0/bundler/gems/vagrant-spec-abfc34474d12/acceptance/triggers/triggers_basic_spec.rb
vagrant-unbundled-2.2.8.0 vendor/bundle/ruby/2.7.0/bundler/gems/vagrant-spec-148cb63d6d06/acceptance/triggers/triggers_basic_spec.rb
vagrant-unbundled-2.2.7.0 vendor/bundle/ruby/2.7.0/bundler/gems/vagrant-spec-abfc34474d12/acceptance/triggers/triggers_basic_spec.rb
vagrant-unbundled-2.2.7.0 vendor/bundle/ruby/2.6.0/bundler/gems/vagrant-spec-abfc34474d12/acceptance/triggers/triggers_basic_spec.rb
vagrant-unbundled-2.2.6.2 vendor/bundle/ruby/2.5.0/bundler/gems/vagrant-spec-94a9d31ba18b/acceptance/triggers/triggers_basic_spec.rb
vagrant-unbundled-2.2.6.2 vendor/bundle/ruby/2.6.0/bundler/gems/vagrant-spec-abfc34474d12/acceptance/triggers/triggers_basic_spec.rb
vagrant-unbundled-2.2.6.2 vendor/bundle/ruby/2.5.0/bundler/gems/vagrant-spec-abfc34474d12/acceptance/triggers/triggers_basic_spec.rb