summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLamont Granquist <lamont@scriptkiddie.org>2014-11-07 15:00:15 -0800
committerLamont Granquist <lamont@scriptkiddie.org>2014-11-07 15:00:15 -0800
commita3958cc758662a71445b20242ed76aaad85e1a2a (patch)
tree35b84da7cba9120cf97e75bec5aeb4d90709932e
parent920b78f5b80f3b233e155418e31c26ac3d62a46c (diff)
downloadchef-lcg/chef-12-attr.tar.gz
fix rspec truthy thingslcg/chef-12-attr
-rw-r--r--spec/unit/node_spec.rb12
1 files changed, 6 insertions, 6 deletions
diff --git a/spec/unit/node_spec.rb b/spec/unit/node_spec.rb
index 47605de863..1daaf9ec52 100644
--- a/spec/unit/node_spec.rb
+++ b/spec/unit/node_spec.rb
@@ -782,8 +782,8 @@ describe Chef::Node do
node.automatic_attrs[:recipes] = [ "nginx::other_module" ]
node.loaded_recipe(:nginx, "module")
expect(node.automatic_attrs[:recipes].length).to eq(2)
- expect(node.recipe?("nginx::module")).to be_truthy
- expect(node.recipe?("nginx::other_module")).to be_truthy
+ expect(node.recipe?("nginx::module")).to be true
+ expect(node.recipe?("nginx::other_module")).to be true
end
end
@@ -794,11 +794,11 @@ describe Chef::Node do
end
it "finds the recipe" do
- expect(node.recipe?("nginx::module")).to be_truthy
+ expect(node.recipe?("nginx::module")).to be true
end
it "does not find a recipe not in the run list" do
- expect(node.recipe?("nginx::other_module")).to be_falsey
+ expect(node.recipe?("nginx::other_module")).to be false
end
end
context "when a recipe is in the expanded run list only" do
@@ -808,11 +808,11 @@ describe Chef::Node do
end
it "finds a recipe in the expanded run list" do
- expect(node.recipe?("nginx::module")).to be_truthy
+ expect(node.recipe?("nginx::module")).to be true
end
it "does not find a recipe that's not in the run list" do
- expect(node.recipe?("nginx::other_module")).to be_falsey
+ expect(node.recipe?("nginx::other_module")).to be false
end
end
end