spec/configliere/config_file_spec.rb in configliere-0.0.5 vs spec/configliere/config_file_spec.rb in configliere-0.0.6
- old
+ new
@@ -23,9 +23,13 @@
end
it 'loads a simple filename from the default config dir' do
File.should_receive(:open).with(Configliere::DEFAULT_CONFIG_DIR + '/file.yaml').and_return(@fake_file)
@config.read 'file.yaml'
end
+ it 'loads an absolute pathname from the given file' do
+ File.should_receive(:open).with('/fake/path.yaml').and_return(@fake_file)
+ @config.read '/fake/path.yaml'
+ end
after do
@config[:my_param].should == 'val'
end
end
describe 'in edge cases' do