From ca5774ea32bb975937f50e208f45455cfef9f713 Mon Sep 17 00:00:00 2001 From: Amad Aslam Date: Wed, 31 Jul 2024 11:34:15 -0700 Subject: [PATCH] Use 'recipe' in fb_helpers chefspec Summary: We should use the recipe spec helper here, otherwise this can break chefspec runs: Differential Revision: D60405893 fbshipit-source-id: 11140de9f18993e8dcfe9132bbe9852e96f7a73e --- itchef/cookbooks/fb_helpers/spec/default_spec.rb | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/itchef/cookbooks/fb_helpers/spec/default_spec.rb b/itchef/cookbooks/fb_helpers/spec/default_spec.rb index 57df4700..3e9b65e1 100644 --- a/itchef/cookbooks/fb_helpers/spec/default_spec.rb +++ b/itchef/cookbooks/fb_helpers/spec/default_spec.rb @@ -15,10 +15,12 @@ # See the License for the specific language governing permissions and # limitations under the License. -require 'chef' +require './spec/spec_helper' require_relative '../libraries/fb_helpers' -describe FB::Helpers do +recipe 'fb_helpers::spec' do + let(:node) { Chef::Node.new } + context 'evaluate_lazy_enumerable' do before do stub_const('Chef::VERSION', '17.0.42')