spec/authority/configuration_spec.rb in authority-3.0.0 vs spec/authority/configuration_spec.rb in authority-3.1.0
- old
+ new
@@ -15,10 +15,10 @@
it "logs to standard error by default" do
Authority.instance_variable_set :@configuration, nil
null = File.exists?('/dev/null') ? '/dev/null' : 'NUL:' # Allow for Windows
logger = Logger.new(null)
- Logger.should_receive(:new).with(STDERR).and_return(logger)
+ expect(Logger).to receive(:new).with(STDERR).and_return(logger)
Authority.configure
Authority.logger
end
end