[rspec-users] Make macros DRY

2010-12-21 Thread rejeep
Hey, I have lots of problems to refactor RSpec macros and make them DRY. Right now I'm stuck in such a situation for some role macros. In my controller tests, I want to write: 1) it_should_grant_access(:super_admin, :to => :countries) 2) it_should_grant_access(:admin, :to => :countries, :onl

Re: [rspec-users] Make macros DRY

2010-12-22 Thread rejeep
Thanks! On Dec 22, 3:03 am, David Chelimsky wrote: > On Dec 21, 2010, at 2:11 PM, rejeep wrote: > > > > > > > > > > > Hey, > > > I have lots of problems to refactor RSpec macros and make them DRY. > > Right now I'm stuck in such