Sha256: 1b24fbed6e5de4ca5dac0cdaa3b66d37f2e8d531678dd322a430c01098523a84
Contents?: true
Size: 731 Bytes
Versions: 3
Compression:
Stored size: 731 Bytes
Contents
require "spec_helper" module RockConfig describe Scanner do let(:configuration) do configuration = Configuration.new configuration.scanned_directories << File.join(Dir.pwd, "config") configuration.config_loaders << YamlLoader.new configuration end let(:scanner) { Scanner.new(configuration) } let(:fixtures_path) { File.join(Dir.pwd, "spec", "fixtures") } it "finds nothing when the target doesnt exist" do expect do scanner.find("database") end.to raise_error(ConfigNotFoundError) end it "scans additional directories" do configuration.scanned_directories << fixtures_path scanner.find("database").should_not be_nil end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
rock_config-0.0.4 | spec/scanner_spec.rb |
rock_config-0.0.3 | spec/scanner_spec.rb |
rock_config-0.0.2 | spec/scanner_spec.rb |