Re: [rspec-users] Odd response.body behavior

2007-09-25 Thread Luke Galea
n dev. Perhaps it's a rails issue rather than an rspec issue? -- Luke On 22-Sep-07, at 11:17 AM, Luke Galea wrote: > Hi all, > > I'm having very odd behavior, but only with a few of my specs. > > I'm checking the value of response.body and in most cases finding

[rspec-users] Odd response.body behavior

2007-09-22 Thread Luke Galea
Hi all, I'm having very odd behavior, but only with a few of my specs. I'm checking the value of response.body and in most cases finding it to be the content of the body... but in some cases it's the name of the template rendered!! There's no rhyme or reason I can see, but obviously my test

Re: [rspec-users] Authenticating before tests

2007-09-22 Thread Luke Galea
dberg_loaded end before(:each) do login_as :galeal end Thanks for your help! -- Luke On 17-Sep-07, at 10:45 AM, peter.boling wrote: > > > Luke Galea-4 wrote: >> >> Could someone point me in the right direction? >> >> I thought the simplest way would be to

[rspec-users] Authenticating before tests

2007-09-13 Thread Luke Galea
Hi all, I'm using Goldberg, an engine that provides roles based access control for my app. I need to login before I can do controller tests, but I can't find any examples of people doing this. Could someone point me in the right direction? I thought the simplest way would be to either call t