Sha256: 6ba8d50390cd89df6796205887d0c4e053460e8ce99b59bacec08e1660b39147

Contents?: true

Size: 604 Bytes

Versions: 2

Compression:

Stored size: 604 Bytes

Contents

require 'spec_helper'

describe Vagrant::Boxen::ManifestBuilder do
  let(:rbenv)     { mock(:rbenv_module,     :build_manifest => 'RBENV') }
  let(:memcached) { mock(:memcached_module, :build_manifest => 'MEMCACHED') }
  let(:config)    { mock(:config, :enabled_modules => [rbenv, memcached]) }
  let(:manifest)  { subject.build }

  subject { described_class.new(config) }

  it 'builds manifest based on enabled modules' do
    manifest.should =~ /RBENV\s+MEMCACHED/
  end

  it 'adds default path for Exec resource' do
    manifest.split("\n").first.should =~ /^Exec { path => \[ '\/bin\/'/
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
vagrant-boxen-0.0.4 spec/unit/manifest_builder_spec.rb
vagrant-boxen-0.0.3 spec/unit/manifest_builder_spec.rb