Sha256: f2fa61ef7e9e526bc7c78afc50d2f94da6fe69c141e964d608a2998ee728468d

Contents?: true

Size: 990 Bytes

Versions: 1

Compression:

Stored size: 990 Bytes

Contents

require 'spec_helper'

describe VagrantShellCommander::Config do

  let(:subject) {described_class.new}

  describe 'config properies' do
    it 'should have a after_share_folders attr_accessor' do
      expect(subject).to respond_to(:after_share_folders)
      expect(subject).to respond_to(:after_share_folders=)
    end
  end

  describe "#initialize" do
    it 'should initialize after_share_folders' do
      expect(subject.after_share_folders).to be_equal(Vagrant::Plugin::V2::Config::UNSET_VALUE)
    end
  end

  describe "#finalize!" do
    it 'should deinitialize after_share_folders if it has been set' do
      config = described_class.new
      config.finalize!
      expect(config.after_share_folders).to be_nil
    end

    it 'should not deinitialize after_share_folders if it has not been set' do
      config = described_class.new
      config.after_share_folders = 'value'
      config.finalize!
      expect(config.after_share_folders).to eq('value')
    end

  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
vagrant-shell-commander-0.2.0 spec/config_spec.rb