Re: [rspec-users] [cucumber] Cucumber and restful_authentication

2009-04-13 Thread Andrew Premdas
You could look at fbrp (http://github.com/diabolo/fbrp/tree/master) which has lots of tests like this. You could add a debug statement when you visit a page that you actually have to be logged in, to see if you actually are logged in. I suspect of the top of my head that you are not logged in when

Re: [rspec-users] [cucumber] Cucumber and restful_authentication

2009-04-12 Thread Ben Mabey
David Chelimsky wrote: On Sat, Apr 11, 2009 at 8:04 PM, Tadatoshi Takahashi wrote: David Chelimsky wrote: On Thu, Apr 9, 2009 at 7:37 PM, Tadatoshi Takahashi wrote: what to do. �User.create!( :first_name => 'quire', map.login '/login', :controller => 'sessions', :action => 'n

Re: [rspec-users] [cucumber] Cucumber and restful_authentication

2009-04-12 Thread David Chelimsky
On Sat, Apr 11, 2009 at 8:04 PM, Tadatoshi Takahashi wrote: > David Chelimsky wrote: >> On Thu, Apr 9, 2009 at 7:37 PM, Tadatoshi Takahashi >> wrote: >>> what to do. >>> �User.create!( :first_name => 'quire', >>> >>> map.login '/login', :controller => 'sessions', :action => 'new' >>> >>> Without

Re: [rspec-users] [cucumber] Cucumber and restful_authentication

2009-04-11 Thread Tadatoshi Takahashi
David Chelimsky wrote: > On Thu, Apr 9, 2009 at 7:37 PM, Tadatoshi Takahashi > wrote: >> what to do. >> �User.create!( :first_name => 'quire', >> >> map.login '/login', :controller => 'sessions', :action => 'new' >> >> Without login_required and the step above, the Cucumber scenario was >> success

Re: [rspec-users] [cucumber] Cucumber and restful_authentication

2009-04-10 Thread David Chelimsky
On Thu, Apr 9, 2009 at 7:37 PM, Tadatoshi Takahashi wrote: > Hi, > > I have just started to use Cucumber. > I'm struggling to use Cucumber on the feature that is available only to > the logged in user. > > Could anybody provide the codes that need to be added? > > > The sites I found by Google sea

[rspec-users] [cucumber] Cucumber and restful_authentication

2009-04-09 Thread Tadatoshi Takahashi
Hi, I have just started to use Cucumber. I'm struggling to use Cucumber on the feature that is available only to the logged in user. Could anybody provide the codes that need to be added? The sites I found by Google search don't give clear information about what to do. The ones I found are: ht

[rspec-users] [cucumber] Cucumber and restful_authentication

2009-04-09 Thread Tadatoshi Takahashi
Hi, I have just started to use Cucumber. I'm struggling to use Cucumber on the feature that is available only to the logged in user. Could anybody provide the codes that need to be added? The sites I found by Google search don't give clear information about what to do. The ones I found are: ht