Sha256: 7615782aa9c8e830132dafbe60ead5a17a768519117e96659da6a88a33e1a3f8
Contents?: true
Size: 767 Bytes
Versions: 3
Compression:
Stored size: 767 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, 'Config file "database" not found') 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.7 | spec/scanner_spec.rb |
rock_config-0.0.6 | spec/scanner_spec.rb |
rock_config-0.0.5 | spec/scanner_spec.rb |