spec/profile_spec.rb in rconf-0.8.2 vs spec/profile_spec.rb in rconf-0.8.3
- old
+ new
@@ -16,9 +16,15 @@
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 re-configuration' do
+ flexmock(RightConf::Profile.instance).should_receive(:reset).once
+ RightConf::Profile.force
+ RightConf::Profile.force?.should be_true
+ end
+
end