Sha256: 8ae9a6c9036569398d307b1c78320803cb19ea381f4c16336c5d92c64b992b52
Contents?: true
Size: 1.49 KB
Versions: 38
Compression:
Stored size: 1.49 KB
Contents
# Copyright (C) 2011 RightScale, Inc, All Rights Reserved Worldwide. # # THIS PROGRAM IS CONFIDENTIAL AND PROPRIETARY TO RIGHTSCALE # AND CONSTITUTES A VALUABLE TRADE SECRET. Any unauthorized use, # reproduction, modification, or disclosure of this program is # strictly prohibited. Any use of this program by an authorized # licensee is strictly subject to the terms and conditions, # including confidentiality obligations, set forth in the applicable # License Agreement between RightScale.com, Inc. and # the licensee require File.expand_path(File.join(File.dirname(__FILE__), '..', 'spec_helper')) describe RightConf::PackagesConfigurator do def success_result(output=nil) flexmock('res', :success? => true, :output => output) end before(:each) do @configurator = create_configurator('packages { debian %w(deb1 deb2); centos %w(cent1 cent2); darwin %w(mac1 mac2) }') end it 'should install packages on Ubuntu' do flexmock(RightConf::PackageInstaller.instance).should_receive(:install).once.with(%w(deb1 deb2), { :report => true }) @configurator.run_linux_ubuntu end it 'should install packages on Centos' do flexmock(RightConf::PackageInstaller.instance).should_receive(:install).once.with(%w(cent1 cent2), { :report => true }) @configurator.run_linux_centos end it 'should install packages on Darwin' do flexmock(RightConf::PackageInstaller.instance).should_receive(:install).once.with(%w(mac1 mac2), { :report => true }) @configurator.run_darwin end end
Version data entries
38 entries across 38 versions & 1 rubygems