summaryrefslogtreecommitdiff
path: root/spec/unit/resource/dnf_package_spec.rb
diff options
context:
space:
mode:
Diffstat (limited to 'spec/unit/resource/dnf_package_spec.rb')
-rw-r--r--spec/unit/resource/dnf_package_spec.rb18
1 files changed, 9 insertions, 9 deletions
diff --git a/spec/unit/resource/dnf_package_spec.rb b/spec/unit/resource/dnf_package_spec.rb
index 0cc673d897..56c7ac7528 100644
--- a/spec/unit/resource/dnf_package_spec.rb
+++ b/spec/unit/resource/dnf_package_spec.rb
@@ -36,7 +36,7 @@ describe Chef::Resource::DnfPackage, "arch" do
@resource = Chef::Resource::DnfPackage.new("foo")
end
- it "should set the arch variable to whatever is passed in" do
+ it "sets the arch variable to whatever is passed in" do
@resource.arch("i386")
expect(@resource.arch).to eql(["i386"])
end
@@ -47,40 +47,40 @@ describe Chef::Resource::DnfPackage, "flush_cache" do
@resource = Chef::Resource::DnfPackage.new("foo")
end
- it "should default the flush timing to false" do
+ it "defaults the flush timing to false" do
flush_hash = { :before => false, :after => false }
expect(@resource.flush_cache).to eq(flush_hash)
end
- it "should allow you to set the flush timing with an array" do
+ it "allows you to set the flush timing with an array" do
flush_array = [ :before, :after ]
flush_hash = { :before => true, :after => true }
@resource.flush_cache(flush_array)
expect(@resource.flush_cache).to eq(flush_hash)
end
- it "should allow you to set the flush timing with a hash" do
+ it "allows you to set the flush timing with a hash" do
flush_hash = { :before => true, :after => true }
@resource.flush_cache(flush_hash)
expect(@resource.flush_cache).to eq(flush_hash)
end
- it "should allow 'true' for flush_cache" do
+ it "allows 'true' for flush_cache" do
@resource.flush_cache(true)
expect(@resource.flush_cache).to eq({ before: true, after: true })
end
- it "should allow 'false' for flush_cache" do
+ it "allows 'false' for flush_cache" do
@resource.flush_cache(false)
expect(@resource.flush_cache).to eq({ before: false, after: false })
end
- it "should allow ':before' for flush_cache" do
+ it "allows ':before' for flush_cache" do
@resource.flush_cache(:before)
expect(@resource.flush_cache).to eq({ before: true, after: false })
end
- it "should allow ':after' for flush_cache" do
+ it "allows ':after' for flush_cache" do
@resource.flush_cache(:after)
expect(@resource.flush_cache).to eq({ before: false, after: true })
end
@@ -91,7 +91,7 @@ describe Chef::Resource::DnfPackage, "allow_downgrade" do
@resource = Chef::Resource::DnfPackage.new("foo")
end
- it "should allow you to specify whether allow_downgrade is true or false" do
+ it "allows you to specify whether allow_downgrade is true or false" do
Chef::Config[:treat_deprecation_warnings_as_errors] = false
expect { @resource.allow_downgrade true }.not_to raise_error
expect { @resource.allow_downgrade false }.not_to raise_error