spec/beaker/options/presets_spec.rb in beaker-4.38.1 vs spec/beaker/options/presets_spec.rb in beaker-4.39.0
- old
+ new
@@ -2,11 +2,11 @@
module Beaker
module Options
describe Presets do
- let(:presets) { Presets.new }
+ let(:presets) { described_class.new }
it "returns an env_vars OptionsHash" do
expect(presets.env_vars).to be_instance_of(Beaker::Options::OptionsHash)
end
@@ -32,10 +32,10 @@
it "returns a presets OptionsHash" do
expect(presets.presets).to be_instance_of(Beaker::Options::OptionsHash)
end
it 'has empty host_tags' do
- expect(presets.presets.has_key?(:host_tags)).to be_truthy
+ expect(presets.presets).to have_key(:host_tags)
expect(presets.presets[:host_tags]).to eq({})
end
end
end