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.6.1 vendor/bundle/ruby/2.5.0/bundler/gems/vagrant-spec-94a9d31ba18b/acceptance/triggers/triggers_basic_spec.rb
vagrant-unbundled-2.2.6.1 vendor/bundle/ruby/2.5.0/bundler/gems/vagrant-spec-abfc34474d12/acceptance/triggers/triggers_basic_spec.rb
vagrant-unbundled-2.2.6.1 vendor/bundle/ruby/2.6.0/bundler/gems/vagrant-spec-abfc34474d12/acceptance/triggers/triggers_basic_spec.rb
vagrant-unbundled-2.2.6.0 vendor/bundle/ruby/2.5.0/bundler/gems/vagrant-spec-94a9d31ba18b/acceptance/triggers/triggers_basic_spec.rb
vagrant-unbundled-2.2.6.0 vendor/bundle/ruby/2.5.0/bundler/gems/vagrant-spec-abfc34474d12/acceptance/triggers/triggers_basic_spec.rb
vagrant-unbundled-2.2.6.0 vendor/bundle/ruby/2.6.0/bundler/gems/vagrant-spec-abfc34474d12/acceptance/triggers/triggers_basic_spec.rb
vagrant-unbundled-2.2.5.0 vendor/bundle/ruby/2.6.0/bundler/gems/vagrant-spec-abfc34474d12/acceptance/triggers/triggers_basic_spec.rb
vagrant-unbundled-2.2.5.0 vendor/bundle/ruby/2.5.0/bundler/gems/vagrant-spec-abfc34474d12/acceptance/triggers/triggers_basic_spec.rb
vagrant-unbundled-2.2.5.0 vendor/bundle/ruby/2.5.0/bundler/gems/vagrant-spec-94a9d31ba18b/acceptance/triggers/triggers_basic_spec.rb
vagrant-unbundled-2.2.4.0 vendor/bundle/ruby/2.5.0/bundler/gems/vagrant-spec-94a9d31ba18b/acceptance/triggers/triggers_basic_spec.rb
vagrant-unbundled-2.2.4.0 vendor/bundle/ruby/2.6.0/bundler/gems/vagrant-spec-abfc34474d12/acceptance/triggers/triggers_basic_spec.rb
vagrant-unbundled-2.2.4.0 vendor/bundle/ruby/2.5.0/bundler/gems/vagrant-spec-abfc34474d12/acceptance/triggers/triggers_basic_spec.rb
vagrant-unbundled-2.2.3.0 vendor/bundle/ruby/2.5.0/bundler/gems/vagrant-spec-94a9d31ba18b/acceptance/triggers/triggers_basic_spec.rb
vagrant-unbundled-2.2.3.0 vendor/bundle/ruby/2.5.0/bundler/gems/vagrant-spec-abfc34474d12/acceptance/triggers/triggers_basic_spec.rb
vagrant-unbundled-2.2.2.0 vendor/bundle/ruby/2.5.0/bundler/gems/vagrant-spec-94a9d31ba18b/acceptance/triggers/triggers_basic_spec.rb
vagrant-unbundled-2.2.0.0 vendor/bundle/ruby/2.5.0/bundler/gems/vagrant-spec-94a9d31ba18b/acceptance/triggers/triggers_basic_spec.rb
vagrant-unbundled-2.1.4.0 vendor/bundle/ruby/2.5.0/bundler/gems/vagrant-spec-94a9d31ba18b/acceptance/triggers/triggers_basic_spec.rb
vagrant-unbundled-2.1.2.0 vendor/bundle/ruby/2.3.0/bundler/gems/vagrant-spec-94a9d31ba18b/acceptance/triggers/triggers_basic_spec.rb