spec/beaker/options/options_hash_spec.rb in beaker-1.21.0 vs spec/beaker/options/options_hash_spec.rb in beaker-2.0.0
- old
+ new
@@ -15,15 +15,15 @@
options.merge({'key' => 'value'})
expect(options['key']) === 'value' and expect(options[:key]) === 'value'
end
it "supports is_pe?, defaults to pe" do
- expect(options.is_pe?).to be_true
+ expect(options.is_pe?).to be_truthy
end
it "supports is_pe?, respects :type == foss" do
options[:type] = 'foss'
- expect(options.is_pe?).to be_false
+ expect(options.is_pe?).to be_falsy
end
it "can delete by string of symbol key" do
options['key'] = 'value'
expect(options.delete('key')) === 'value' and expect(options.delete(:key)) === 'value'