spec/lib/elasticonf/config_spec.rb in elasticonf-1.1.3 vs spec/lib/elasticonf/config_spec.rb in elasticonf-1.1.4

- old
+ new

@@ -6,14 +6,14 @@ subject.env = :test subject.config_root = '/configuration' subject.config_file = 'application' subject.const_name = 'AppSettings' subject.raise_if_already_initialized_constant = false - + subject.reset_config! end - + its(:env) { should eql('development') } its(:config_file) { should eql('settings') } its(:const_name) { should eql('Settings') } its(:raise_if_already_initialized_constant) { should be_true } @@ -142,11 +142,11 @@ it 'should raise an error' do expect { subject.raise_if_already_initialized_constant = :some_symbol }.to raise_error end - + it 'should raise an error' do expect { subject.raise_if_already_initialized_constant = -> {} }.to raise_error end @@ -162,6 +162,6 @@ subject.raise_if_already_initialized_constant = [] }.to raise_error end end end -end \ No newline at end of file +end