diff options
author | Lamont Granquist <lamont@scriptkiddie.org> | 2014-11-07 15:00:15 -0800 |
---|---|---|
committer | Lamont Granquist <lamont@scriptkiddie.org> | 2014-11-08 11:30:22 -0800 |
commit | 1ca270e777954936ce7073b3d58f076e248bb430 (patch) | |
tree | 5f1cf5d20938c30484fe759991ef62219ba302ce | |
parent | 7f6c960bce5950de2619a89166411632e77a9eae (diff) | |
download | chef-1ca270e777954936ce7073b3d58f076e248bb430.tar.gz |
fix rspec truthy things
-rw-r--r-- | spec/unit/node_spec.rb | 12 |
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 |