Re: [rspec-users] feature suggestion: straight strings

2010-12-21 Thread Robert Dober
On Mon, Dec 20, 2010 at 7:02 PM, David Chelimsky wrote: Probably one could argue that in a spec environment what I am about to say does not apply as much as in production code. Yet I feel that it is not the responsibility of a String to describe an example. This theoretical observation apart, I fi

[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-21 Thread David Chelimsky
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 a situation for some role macros. > > In my controller tests, I want to write: > > 1) it_should_grant_access(:super_admin, :to => :countries)