spec/isomer/sources/yaml_spec.rb in isomer-0.1.0 vs spec/isomer/sources/yaml_spec.rb in isomer-0.1.1

- old
+ new

@@ -5,9 +5,14 @@ it 'blows up if the file parameter is missing' do expect { Isomer::Sources::Yaml.new(anything) }.to raise_error(Isomer::Error, "YAML source requires the 'file' parameter") end + + it 'always converts the file to a string' do + source = Isomer::Sources::Yaml.new(anything, file: :foo) + source.file.should == 'foo' + end end describe '#load' do it 'loads the YAML file configuration file' do File.stub(:exists?).and_return(true)