Sha256: 22d91b1ce5b166f389891c01e03cd24e773efc38b5e30054d8b5454405a00192
Contents?: true
Size: 999 Bytes
Versions: 3
Compression:
Stored size: 999 Bytes
Contents
require 'spec_helper' describe VagrantPlugins::ShellCommander::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
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
vagrant-shell-commander-0.3.2 | spec/config_spec.rb |
vagrant-shell-commander-0.3.1 | spec/config_spec.rb |
vagrant-shell-commander-0.3.0 | spec/config_spec.rb |