On 16 Sep 2011, at 01:17, Alex Chaffee wrote:
> https://github.com/defunkt/fakefs might help too
I thought that too, but then it occurred to me there's a chance mini_magick
isn't using Ruby's filesystem code (it might be writing to the FileSystem with
native code for example), so I didn't put
https://github.com/defunkt/fakefs might help too
--
Alex Chaffee - a...@stinky.com
http://alexch.github.com
http://twitter.com/alexch
___
rspec-users mailing list
rspec-users@rubyforge.org
http://rubyforge.org/mailman/listinfo/rspec-users
On 14 September 2011 11:51, Rob Aldred wrote:
> I'm speccing a small lib which manipulates image files using mini_magick.
> The lib creates various temporary files during the process, the lib then
> cleans up the temporary files at the end.
>
> I'm trying to mock expectations that the calls are m
Hey Ash,
I like the idea of a wrapper.
In fact I use this method for methods that need to shell out
Maybe your right, the subdirectory would probably a better safer way of
organising the temporary files.
I'll have a re-think.
Thanks for the info.
Rob
--
On Thursday, 15 September 2011 at 1
On Thu, Sep 15, 2011 at 5:05 AM, Rob Aldred wrote:
> Thanks Justin,
> That isnt working... its erroring with:
>
> The method `delete` was not stubbed or was already unstubbed
>
Woops, you're using expectations, not stubs. Try `File.rspec_reset`
>
> --
> Rob Aldred
>
> Software Developer
> r...
On 15 Sep 2011, at 10:05, Rob Aldred wrote:
> Thanks Justin,
> That isnt working... its erroring with:
>
> The method `delete` was not stubbed or was already unstubbed
Hi Rob
For reasons I could go into, when I'm coding myself I don't usually stub out
file system access or other third party
Thanks Justin,
That isnt working... its erroring with:
The method `delete` was not stubbed or was already unstubbed
--
Rob Aldred
Software Developer
r...@stardotstar.com
twitter: stardotstar
47 Newton Street, Manchester, M1 1FT
T: +44 (0) 161 236 9740
___
On Wed, Sep 14, 2011 at 6:51 AM, Rob Aldred wrote:
> I'm speccing a small lib which manipulates image files using mini_magick.
> The lib creates various temporary files during the process, the lib then
> cleans up the temporary files at the end.
>
> I'm trying to mock expectations that the calls