spec/confstruct/configuration_spec.rb in confstruct-1.0.2 vs spec/confstruct/configuration_spec.rb in confstruct-1.1.0
- old
+ new
@@ -136,10 +136,10 @@
@config.should == @defaults
end
it "should call #after_config! when configuration is complete" do
postconfigurator = double('after_config!')
- postconfigurator.should_receive(:configured!).once.with(@config)
+ expect(postconfigurator).to receive(:configured!).once.with(@config)
def @config.after_config! obj
obj.project.should == 'other-project'
obj.mock.configured!(obj)
end
@config.configure do