Sha256: 95307bb811ac53d2c2c368e1af715afc52159e09a216c8d0f492665a6aca0008
Contents?: true
Size: 473 Bytes
Versions: 1
Compression:
Stored size: 473 Bytes
Contents
describe Econfig::YAML do let(:backend) { Econfig::YAML.new } describe "#get" do it "fetches option from yaml config file" do backend.get("quox").should == "baz" end it "returns nil when the option does not exist" do backend.get("does_not_exist").should be_nil end it "returns nil when there is no config file" do backend = Econfig::YAML.new("/does/not/exist") backend.get("does_not_exist").should be_nil end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
econfig-0.1.0 | spec/yaml_spec.rb |