Re: [rspec-users] File creation

2010-04-28 Thread ben rooney
Rick Many thanks - I think the idea of breaking out the actual file writing from the code generation is a great one. I don't need to test File I/O - I think I can assume that that works just fine... Many thanks for your help Ben ___ rspec-users mailing

Re: [rspec-users] File creation

2010-04-25 Thread Rick DeNatale
On Thu, Apr 22, 2010 at 9:28 AM, ben rooney wrote: > I have a model that generates the authorization_rules.rb for > declarative_auth. I am not sure how I can go about testing the model - > apart from anything I don't want my test to over-write the file - so, > er, I am not quite sure how to go abo

[rspec-users] File creation

2010-04-22 Thread ben rooney
I have a model that generates the authorization_rules.rb for declarative_auth. I am not sure how I can go about testing the model - apart from anything I don't want my test to over-write the file - so, er, I am not quite sure how to go about it. I *could* have some sort of sniffer in my model to s