Sha256: 90a90b101fff1b1bfd36421823bce328dc4d839e140ff856de4d06b29f191965
Contents?: true
Size: 1.22 KB
Versions: 16
Compression:
Stored size: 1.22 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.join(File.dirname(__FILE__), 'spec_helper') describe RightConf::Profile do it 'should save profile to disk when changing values' do flexmock(RightConf::Profile.instance).should_receive(:persist).once RightConf::Profile.set_configurator_signature(:test, '42') end it 'should reset when forcing checks' do flexmock(RightConf::Profile.instance).should_receive(:reset).once RightConf::Profile.force_check RightConf::Profile.force_check?.should be_true end it 'should reset when forcing re-configuration' do flexmock(RightConf::Profile.instance).should_receive(:reset).once RightConf::Profile.force_reconfigure RightConf::Profile.force_reconfigure?.should be_true end end
Version data entries
16 entries across 16 versions & 1 rubygems