spec/configurator_spec.rb in rconf-0.8.8 vs spec/configurator_spec.rb in rconf-0.8.9

- old
+ new

@@ -19,11 +19,11 @@ validate_has_settings :required attr_reader :custom_setting def test_setter(value) @custom_setting = value end - def check_darwin; end + def check_darwin; true; end alias :check_linux :check_darwin alias :check_windows :check_darwin def run_darwin; end alias :run_linux :run_darwin alias :run_windows :run_darwin @@ -58,10 +58,12 @@ @configurator.custom_setting.should == 43 end it 'should check' do flexmock(RightConf::Profile.instance).should_receive(:configurator_signature).and_return(@configurator.signature) + flexmock(RightConf::Profile.instance).should_receive(:force_reconfigure?).and_return(false) + flexmock(RightConf::Profile.instance).should_receive(:force_check?).and_return(false) flexmock(RightConf::Platform.instance).should_receive(:dispatch).never @configurator.run end it 'should validate' do @@ -76,9 +78,11 @@ end it 'should skip configurators that have already run' do flexmock(RightConf::Profile.instance).should_receive(:configurator_signature).with('test-1').and_return('42') flexmock(@configurator).should_receive(:signature).and_return('42') + flexmock(RightConf::Profile.instance).should_receive(:force_reconfigure?).and_return(false) + flexmock(RightConf::Profile.instance).should_receive(:force_check?).and_return(false) flexmock(RightConf::Platform.instance).should_receive(:dispatch).never @configurator.run end end