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

Version Path
rconf-0.8.21 spec/profile_spec.rb
rconf-0.8.20 spec/profile_spec.rb
rconf-0.8.19 spec/profile_spec.rb
rconf-0.8.18 spec/profile_spec.rb
rconf-0.8.17 spec/profile_spec.rb
rconf-0.8.16 spec/profile_spec.rb
rconf-0.8.15 spec/profile_spec.rb
rconf-0.8.14 spec/profile_spec.rb
rconf-0.8.13 spec/profile_spec.rb
rconf-0.8.12 spec/profile_spec.rb
rconf-0.8.11 spec/profile_spec.rb
rconf-0.8.10 spec/profile_spec.rb
rconf-0.8.9 spec/profile_spec.rb
rconf-0.8.8 spec/profile_spec.rb
rconf-0.8.5 spec/profile_spec.rb
rconf-0.8.4 spec/profile_spec.rb