- From: "Sean Farrow" <
>
- To: <
>
- Subject: [chef] RE: Re: Checking that a dcirectory exists with ChefSpec/RSpec
- Date: Mon, 22 Jun 2015 19:48:46 +0100
Hi,
The package creates this when it installs, it doesn't use chef!
Cheers
Sean.
-----Original Message-----
From: Noah Kantrowitz
[mailto:
Sent: 22 June 2015 19:30
To:
Subject: [chef] Re: Checking that a dcirectory exists with ChefSpec/RSpec
On Jun 22, 2015, at 11:28 AM, Sean Farrow
<
>
wrote:
>
Hi,
>
>
I've got a unit test that uses another recipe to install chocolatey. I
want to check that the folder that chocolatey is installed to exists. Given
that the recipe doesn't create the folder, what is the best way of doing
this using ChefSpec?
>
Kind regards
>
Sean.
Assuming you use a directory resource to create it, expect(chef_run).to
create_directory('c:\\whatever')
--Noah
Archive powered by MHonArc 2.6.16.