Sha256: 7a7e489b5dbc815b39b4622be8b01bc36f3eeaacf883196d32ca04ccc064bafe

Contents?: true

Size: 620 Bytes

Versions: 96

Compression:

Stored size: 620 Bytes

Contents

require "vagrant-spec/acceptance/configuration"

describe Vagrant::Spec::Acceptance::Configuration do
  describe "providers" do
    it "has no providers initially" do
      expect(subject.providers).to be_empty
    end

    it "can add providers" do
      subject.provider "foo", option: :bar

      p = subject.providers
      expect(p.length).to eql(1)
      expect(p["foo"][:option]).to eql(:bar)
    end

    it "adds a features array to providers by default" do
      subject.provider "foo"

      p = subject.providers
      expect(p.length).to eql(1)
      expect(p["foo"]).to eql(features: [])
    end
  end
end

Version data entries

96 entries across 29 versions & 2 rubygems

Version Path
vagrant-unbundled-2.1.4.0 vendor/bundle/ruby/2.5.0/bundler/gems/vagrant-spec-94a9d31ba18b/spec/acceptance/configuration_spec.rb
vagrant-unbundled-2.1.4.0 vendor/bundle/ruby/2.5.0/bundler/gems/vagrant-spec-f3daedaac493/spec/acceptance/configuration_spec.rb
vagrant-unbundled-2.1.2.0 vendor/bundle/ruby/2.3.0/bundler/gems/vagrant-spec-94a9d31ba18b/spec/acceptance/configuration_spec.rb
vagrant-unbundled-2.1.1.0 vendor/bundle/ruby/2.5.0/bundler/gems/vagrant-spec-f3daedaac493/spec/acceptance/configuration_spec.rb
vagrant-unbundled-2.0.4.0 vendor/bundle/ruby/2.5.0/bundler/gems/vagrant-spec-f3daedaac493/spec/acceptance/configuration_spec.rb
vagrant-unbundled-2.0.3.0 vendor/bundle/ruby/2.5.0/bundler/gems/vagrant-spec-f3daedaac493/spec/acceptance/configuration_spec.rb
vagrant-unbundled-2.0.2.0 vendor/bundle/ruby/2.4.0/bundler/gems/vagrant-spec-af86757912f7/spec/acceptance/configuration_spec.rb
vagrant-unbundled-2.0.2.0 vendor/bundle/ruby/2.5.0/bundler/gems/vagrant-spec-af86757912f7/spec/acceptance/configuration_spec.rb
vagrant-unbundled-2.0.1.0 vendor/bundle/ruby/2.4.0/bundler/gems/vagrant-spec-af86757912f7/spec/acceptance/configuration_spec.rb
vagrant-unbundled-2.0.0.1 vendor/bundle/ruby/2.4.0/bundler/gems/vagrant-spec-af86757912f7/spec/acceptance/configuration_spec.rb
vagrant-unbundled-1.9.8.1 vendor/bundle/ruby/2.4.0/bundler/gems/vagrant-spec-af86757912f7/spec/acceptance/configuration_spec.rb
vagrant-unbundled-1.9.7.1 vendor/bundle/ruby/2.4.0/bundler/gems/vagrant-spec-af86757912f7/spec/acceptance/configuration_spec.rb
vagrant-unbundled-1.9.5.1 vendor/bundle/ruby/2.4.0/bundler/gems/vagrant-spec-9bba7e122837/spec/acceptance/configuration_spec.rb
vagrant-unbundled-1.9.5.1 vendor/bundle/ruby/2.4.0/bundler/gems/vagrant-spec-1d09951eaef3/spec/acceptance/configuration_spec.rb
vagrant-unbundled-1.9.1.1 vendor/bundle/ruby/2.4.0/bundler/gems/vagrant-spec-9bba7e122837/spec/acceptance/configuration_spec.rb
vagrant-cloudstack-1.1.0 vendor/bundle/bundler/gems/vagrant-spec-1df5a3af81cb/spec/acceptance/configuration_spec.rb