Skip to content

Commit

Permalink
Use 'recipe' in fb_helpers chefspec
Browse files Browse the repository at this point in the history
Summary: We should use the recipe spec helper here, otherwise this can break chefspec runs:

Differential Revision: D60405893

fbshipit-source-id: 11140de9f18993e8dcfe9132bbe9852e96f7a73e
  • Loading branch information
Amad Aslam authored and facebook-github-bot committed Jul 31, 2024
1 parent 27a816a commit 66199c2
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions cookbooks/fb_helpers/spec/default_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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')
Expand Down

0 comments on commit 66199c2

Please sign in to comment.