Beriahotep wrote:
> Hi,
>
> I am new to Rspec so i am not sure if this can be done. I want to
> write a test that the outcome of a function is that a new file is
> successfully created in a directory. The test would be somthing like
> "it should save the xml to a file in /path/foo".
>
> Can this be done? If so how is it done? (I am guessing it would be a
> clause in the "after" method.
>
It's not what you're searching for, but can be a start line. :-)
http://cassiomarques.wordpress.com/2009/01/23/how-to-test-file-uploads-with-cucumber/
Hth,
Davi Vidal
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Ruby
on Rails: Talk" 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/rubyonrails-talk?hl=en
-~----------~----~----~----~------~----~------~--~---