Re: [rspec-users] Helper methods can't be called within before hooks. Help, please.

2011-10-14 Thread Gordon Yeong
It's just that I did not find my reply surface after 20 mins and was wondering if it was lost. Sorry about that, everyone :( my apologies. On 14 October 2011 16:01, Justin Ko wrote: > > On Oct 13, 2011, at 8:59 PM, Gordon wrote: > > > > > > > Hi, there, > > > > > > I believe I have some proble

Re: [rspec-users] Helper methods can't be called within before hooks. Help, please.

2011-10-13 Thread Justin Ko
On Oct 13, 2011, at 8:59 PM, Gordon wrote: > > > Hi, there, > > > I believe I have some problem with scoping. > > I have a controller spec file which tests a brands resource. > At the start of the file, I test the resource's access for different > users in a context block > a) not signed in

[rspec-users] Helper methods can't be called within before hooks. Help, please.

2011-10-13 Thread Gordon
Hi, there, I believe I have some problem with scoping. I have a controller spec file which tests a brands resource. At the start of the file, I test the resource's access for different users in a context block a) not signed in b) non-admin user signed in- I call my own helper method, login_