Sha256: 6431cb93431aae7028747385daa670ce89cac0918bbe52965d884b52bdd35f44
Contents?: true
Size: 1.49 KB
Versions: 22
Compression:
Stored size: 1.49 KB
Contents
# Copyright (C) 2011-2012 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
22 entries across 22 versions & 1 rubygems
Version | Path |
---|---|
rconf-0.9.20 | spec/configurators/packages_configurator_spec.rb |
rconf-0.9.19 | spec/configurators/packages_configurator_spec.rb |