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

- old
+ new

@@ -27,35 +27,35 @@ config = DevDNSd::Configuration.new config.address.should == "0.0.0.0" config.port.should == 7771 config.tld.should == "dev" config.log_file.should == "/var/log/devdnsd.log" - config.log_level.should == Logger::INFO + config.log_level.should == ::Logger::INFO config.rules.count.should == 1 config.foreground.should == false end it "reads a valid configuration file" do - file = Tempfile.new('devdnsd-test') + file = ::Tempfile.new('devdnsd-test') file.write("config.port = 7772") file.close config = DevDNSd::Configuration.new(file.path, new_application) config.port.should == 7772 file.unlink end it "reject an invalid configuration" do - file = Tempfile.new('devdnsd-test') + file = ::Tempfile.new('devdnsd-test') file.write("config.port = ") file.close expect { config = DevDNSd::Configuration.new(file.path, new_application)}.to raise_error(DevDNSd::Errors::InvalidConfiguration) file.unlink end it "allows overrides" do - file = Tempfile.new('devdnsd-test') + file = ::Tempfile.new('devdnsd-test') file.write("config.port = 7772") file.close config = DevDNSd::Configuration.new(file.path, new_application, {:foreground => true, :port => 7773}) config.port.should == 7773 \ No newline at end of file