Sha256: 3cd0e8026e27a759405b439fca313ec230b1241e6ec00b2214d5e7a9ca087e3a
Contents?: true
Size: 1.02 KB
Versions: 16
Compression:
Stored size: 1.02 KB
Contents
require_relative './spec_helper' require 'builderator/config' require 'builderator/interface/berkshelf' require 'builderator/interface/packer' require 'builderator/interface/vagrant' # :nodoc: module Builderator RSpec.describe Interface do context 'Berksfile' do berkshelf = Interface.berkshelf it 'loads from Config values' do expect(berkshelf.vendor).to eq Config.local.cookbook_path end it 'generates the correct Berksfile' do skip expect(berkshelf.render).to eq IO.read(::File.expand_path('../data/Berksfile', __FILE__)) end end context 'Vagrantfile' do # vagrant = Interface.vagrant(:default) it 'loads from Config values' do skip expect(vagrant.build_name).to eq Config.build_name end it 'generates the correct Vagrantfile' do skip pending "test doesn't work with absolute paths" expect(vagrant.render).to eq IO.read(::File.expand_path('../data/Vagrantfile', __FILE__)) end end end end
Version data entries
16 entries across 16 versions & 1 rubygems