From 1634fa821487d588d78812c8fab14c464b1386fd Mon Sep 17 00:00:00 2001 From: Josh Rosenberg Date: Mon, 7 Dec 2015 11:39:53 -0500 Subject: [PATCH] spec test for manage_requirements == false --- spec/defines/requirements_spec.rb | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/spec/defines/requirements_spec.rb b/spec/defines/requirements_spec.rb index 08abdbd9..daf56423 100644 --- a/spec/defines/requirements_spec.rb +++ b/spec/defines/requirements_spec.rb @@ -21,6 +21,10 @@ let (:params) {{ :requirements => "/requirements.txt" }} it { is_expected.to contain_file("/requirements.txt").with_mode('0644') } end + context "/requirements.txt" do + let (:params) {{ :requirements => "/requirements.txt", :manage_requirements => false }} + it { is_expected.not_to contain_file("/requirements.txt") } + end describe "with owner" do context "bob:bob" do