summaryrefslogtreecommitdiff
path: root/spec/unit/policy_builder
diff options
context:
space:
mode:
authorLamont Granquist <lamont@scriptkiddie.org>2016-03-03 16:22:23 -0800
committerLamont Granquist <lamont@scriptkiddie.org>2016-03-03 16:22:23 -0800
commit5fd3c2f8376d7264d8ca4f883c9dfc4fbfb9b0d3 (patch)
tree41d861f8d67a80b1c789357c81545517ea00bd0c /spec/unit/policy_builder
parent0b835a0a92509c5d9ad4123d320024da0005dac3 (diff)
downloadchef-5fd3c2f8376d7264d8ca4f883c9dfc4fbfb9b0d3.tar.gz
better chef+ruby rspec constraints
lets us use Gem::Dependency constraints directly as rspec constraints for matching Chef::Version and RUBY_VERSION. copies some magic sauce from bundler that does something similar
Diffstat (limited to 'spec/unit/policy_builder')
-rw-r--r--spec/unit/policy_builder/expand_node_object_spec.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/spec/unit/policy_builder/expand_node_object_spec.rb b/spec/unit/policy_builder/expand_node_object_spec.rb
index 8667532d72..420db2e855 100644
--- a/spec/unit/policy_builder/expand_node_object_spec.rb
+++ b/spec/unit/policy_builder/expand_node_object_spec.rb
@@ -38,7 +38,7 @@ describe Chef::PolicyBuilder::ExpandNodeObject do
expect(policy_builder).to respond_to(:load_node)
end
- it "has removed the deprecated #load_node method", :chef_gte_13_only do
+ it "has removed the deprecated #load_node method", chef: ">= 13" do
expect(policy_builder).to_not respond_to(:load_node)
end