spec/configurator_spec.rb in rconf-0.7.10 vs spec/configurator_spec.rb in rconf-0.7.11

- old
+ new

@@ -30,11 +30,11 @@ include RightConf::Configurator register :another end before(:each) do - @configurator = TestConfigurator.new + @configurator = TestConfigurator.new(1) end it 'should register configurators' do RightConf::ConfiguratorRegistry[:test].should == TestConfigurator RightConf::ConfiguratorRegistry[:another].should == AnotherConfigurator @@ -65,10 +65,10 @@ flexmock(RightConf::Profile.instance).should_receive(:set_configurator_signature).once @configurator.run end it 'should skip configurators that have already run' do - flexmock(RightConf::Profile.instance).should_receive(:configurator_signature).with(:test).and_return('42') + flexmock(RightConf::Profile.instance).should_receive(:configurator_signature).with('test-1').and_return('42') flexmock(@configurator).should_receive(:signature).and_return('42') flexmock(RightConf::Platform.instance).should_receive(:dispatch).never @configurator.run end