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 see if I am in the Test environment and generate a different file, but putting code into my model to pass tests doesn't seem a very, well, sensible thing to do. Anyone been there, done that? Ben _______________________________________________ rspec-users mailing list rspec-users@rubyforge.org http://rubyforge.org/mailman/listinfo/rspec-users