spec/devdnsd/configuration_spec.rb in devdnsd-1.0.2 vs spec/devdnsd/configuration_spec.rb in devdnsd-1.0.3

- old
+ new

@@ -12,14 +12,17 @@ def logger DevDNSd::Logger.new("/dev/null") end end + let(:log_file) { "/tmp/devdnsd-test-log-#{Time.now.strftime("%Y%m%d-%H:%M:%S")}" } + let(:new_application) { - app = DevDNSd::Application.new + app = DevDNSd::Application.new({:log_file => log_file}) app.logger = DevDNSd::Logger.create("/dev/null", DevDNSd::Logger::DEBUG) app } + describe "#initialize" do it "sets default arguments and rules" do config = DevDNSd::Configuration.new config.address.should == "0.0.0.0" config.port.should == 7771 \ No newline at end of file