spec/lib/config_spec.rb in hieracles-0.0.4 vs spec/lib/config_spec.rb in hieracles-0.0.5
- old
+ new
@@ -40,20 +40,20 @@
Hieracles::Config.load options
end
after { FileUtils.rm(options[:config]) if File.exist? options[:config] }
it 'creates a default config file' do
- expect(File.exist? options[:config]).to be_truthy
+ expect(File.exist? options[:config]).to be true
end
it 'initialize config values' do
expect(Hieracles::Config.classpath).to eq 'manifests/classes/%s.pp'
end
end
end
describe '.defaultconfig' do
- it { expect(Hieracles::Config.defaultconfig).to be_truthy }
+ it { expect(Hieracles::Config.defaultconfig).not_to eq nil }
end
describe '.extract_params' do
let(:str) { 'bla=blu;one=two' }
let(:expected) { { bla: 'blu', one: 'two' } }