Re: [rspec-users] How do I specify login with controller spec with rspec-rails?

2012-07-26 Thread femto Zheng
Thanks. Can I add some configuration to include that piece of code to some controller then I didn't to write that kind of code again for each needed authenticated controller? On Wed, Jul 18, 2012 at 11:57 PM, Justin Ko wrote: > > On Jul 18, 2012, at 9:30 AM, femto Zheng wrote: >

Re: [rspec-users] How do I specify login with controller spec with rspec-rails?

2012-07-18 Thread femto Zheng
yes, using devise. On Wed, Jul 18, 2012 at 11:21 PM, Justin Ko wrote: > > On Jul 18, 2012, at 4:42 AM, femto Zheng wrote: > > Hello all, I'm new to rspec-rails, > looking at rspec-rails's documentation is a bit confusing, > I have an application, > where users nee

[rspec-users] How do I specify login with controller spec with rspec-rails?

2012-07-18 Thread femto Zheng
Hello all, I'm new to rspec-rails, looking at rspec-rails's documentation is a bit confusing, I have an application, where users needs to login to use, so how do I specify login with controller spec with rspec-rails? like a config.(:before_every_example) login something? could someone provide some