spec/bovem/configuration_spec.rb in bovem-0.6.0 vs spec/bovem/configuration_spec.rb in bovem-0.8.0

- old
+ new

@@ -5,11 +5,11 @@ # require "spec_helper" describe Bovem::Configuration do - class BaseConfiguration < Bovem::Configuration + class BaseConfiguration < ::Bovem::Configuration property :property end let(:log_file) { "/tmp/bovem-test-log-#{Time.now.strftime("%Y%m%d-%H:%M:%S")}" } let(:test_prefix) { "/tmp/bovem-test-#{Time.now.strftime("%Y%m%d-%H:%M:%S")}" } @@ -25,11 +25,11 @@ it "reject an invalid configuration" do file1 = ::File.open("#{test_prefix}-1", "w") {|f| f.write("config.property = ") } file2 = ::File.open("#{test_prefix}-2", "w") {|f| f.write("config.non_property = 1234") } - expect { config = BaseConfiguration.new("#{test_prefix}-1")}.to raise_error(Bovem::Errors::InvalidConfiguration) - expect { config = BaseConfiguration.new("#{test_prefix}-2")}.to raise_error(Bovem::Errors::InvalidConfiguration) + expect { config = BaseConfiguration.new("#{test_prefix}-1")}.to raise_error(::Bovem::Errors::InvalidConfiguration) + expect { config = BaseConfiguration.new("#{test_prefix}-2")}.to raise_error(::Bovem::Errors::InvalidConfiguration) File.unlink("#{test_prefix}-1") File.unlink("#{test_prefix}-2") end \ No newline at end of file