spec/lib/elasticonf/loader_spec.rb in elasticonf-1.1.3 vs spec/lib/elasticonf/loader_spec.rb in elasticonf-1.1.4
- old
+ new
@@ -3,20 +3,20 @@
describe Elasticonf::Loader do
subject do
file = Elasticonf.root.join('spec', 'fixtures', 'config.yml')
described_class[YAML.load_file(file)]
end
-
+
it 'should be inherited from Hashie::Mash' do
subject.should be_kind_of(Hashie::Mash)
end
describe '#get' do
it 'should return nil' do
expect(subject.get('some.unexisting.key')).to be_nil
end
-
+
it 'should return some value' do
expect(subject.get('some_config.int_key')).to eql(1)
end
it 'should return some value' do
@@ -25,11 +25,11 @@
context 'when wrong argument given' do
it 'should raise an error' do
expect { subject.get }.to raise_error
end
-
+
it 'should raise an error' do
expect { subject.get({}) }.to raise_error
end
it 'should raise an error' do
@@ -39,6 +39,6 @@
it 'should raise an error' do
expect { subject.get(false) }.to raise_error
end
end
end
-end
\ No newline at end of file
+end