spec/lib/config_spec.rb in hieracles-0.2.1 vs spec/lib/config_spec.rb in hieracles-0.2.2
- old
+ new
@@ -52,21 +52,21 @@
{
config: 'spec/files/config_withdb.yml'
}
end
before { Hieracles::Config.load options }
- it { expect(Hieracles::Config.usedb).to be_truthy }
+ it { expect(Hieracles::Config.usedb).to be true }
end
context 'with nodb passed as param' do
let(:options) do
{
config: 'spec/files/config_withdb.yml',
nodb: true
}
end
before { Hieracles::Config.load options }
- it { expect(Hieracles::Config.usedb).to be_falsey }
+ it { expect(Hieracles::Config.usedb).to be false }
end
end
context 'with no-db set' do
context 'and db passed as param' do
@@ -75,10 +75,10 @@
config: 'spec/files/config.yml',
db: true
}
end
before { Hieracles::Config.load options }
- it { expect(Hieracles::Config.usedb).to be_truthy }
+ it { expect(Hieracles::Config.usedb).to be true }
end
end
context 'without an existing config file' do