On Aug 25, 2008, at 2:43 PM, Brice Figureau wrote:

>
>
> On Mon, August 25, 2008 16:46, Luke Kanies wrote:
>>
>> On Aug 25, 2008, at 6:24 AM, Brice Figureau wrote:
>>
>>> OK, I had a look to those.
>>> I have some questions:
>>> * should I implement both tests (ie in ral and Rspec)? or Rspec is
>>> enough?
>>
>> As James says, only rspec -- we just haven't had a chance to migrate
>> the old tests.
>
> I started writing a rspec test for the daemontools service, but  
> anyhow I
> can't seem to be able to create temp dirs (or file) using
> PuppetTest::tempfile.
[...]

Basically, anything in PuppetTest isn't really set up to work in RSpec.

We don't yet have a generalized solution for handling temp files in  
RSpec, but you also shouldn't need a temp file unless you're writing  
an integration test, in my experience.

>
> Any idea?
> (and sorry for sending so many (maybe dumb) questions on the list)


First three are free, they're $2000USD after that. :)

-- 
Hanlon's razor:
     Never attribute to malice that which can adequately be explained by
     stupidity.
---------------------------------------------------------------------
Luke Kanies | http://reductivelabs.com | http://madstop.com


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Puppet Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/puppet-dev?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to