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
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
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