Re: [rspec-users] Need suggestions on how to test a class

2011-04-13 Thread Sidu Ponnappa
Hi Nicholas, You have little choice but to mock external dependencies like S3 and the file system in order to be able to do TDD. The problem is that, as Matt said, if it's a mission critical feature you'll want to create infrastructure to run tests against a real environment (even if it's just a s

Re: [rspec-users] Need suggestions on how to test a class

2011-04-13 Thread Matt Wynne
On 13 Apr 2011, at 02:48, Nicholas Wieland wrote: > Hi *, the class I need to test is: > > https://gist.github.com/49ef28014bb648ffa63e > > I know my question is very generic, but I honestly fail to see how to test > something that is so strictly procedural and so dependent to the > platform/