spec/profile_spec.rb in rconf-0.8.3 vs spec/profile_spec.rb in rconf-0.8.4
- old
+ new
@@ -16,13 +16,19 @@
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
- RightConf::Profile.force?.should be_true
+ RightConf::Profile.force_reconfigure
+ RightConf::Profile.force_reconfigure?.should be_true
end
end