Re: [rspec-users] Can't get running a simple rspec test: assigns is always nil

2009-10-26 Thread Alexander Seidl
Hi Stephan, thank you very much for this comprehensive answer. And thanks to all others participating at this thread. This will help me on my further attempts to write tests with rspec. Cheers, Alexander Stephen Eley wrote: > On Wed, Oct 21, 2009 at 1:07 PM, Alexander Seidl > wrote: >> >> But

Re: [rspec-users] Can't get running a simple rspec test: assigns is always nil

2009-10-21 Thread Stephen Eley
On Wed, Oct 21, 2009 at 1:07 PM, Alexander Seidl wrote: > > But why does this filter prevents the index action from being executed? Because returning 'false' from a filter does exactly that: it prevents the execution of the controller action. I'll bet I know what you're thinking -- you're thinki

Re: [rspec-users] Can't get running a simple rspec test: assigns is always nil

2009-10-21 Thread Alexander Seidl
Pat Maddox wrote: > On Wed, Oct 21, 2009 at 3:58 AM, Alexander Seidl > wrote: >> hi pat, >> thats all of the code that will be executed in >> categories_controller_spec.rb. the rest is commented out. > > Looks like this may be the same issue as the other thread. You didn't > show all the code,

Re: [rspec-users] Can't get running a simple rspec test: assigns is always nil

2009-10-21 Thread Alexander Seidl
im repeating this message here in the mailing list with an email. i already answered the message at http://www.ruby-forum.com, but it seems that delivering messages via http://www.ruby-forum.com lasts way too long, so i write an email to the mailing list. hi pat, thats all of the code that wil

Re: [rspec-users] Can't get running a simple rspec test: assigns is always nil

2009-10-21 Thread Pat Maddox
On Wed, Oct 21, 2009 at 3:58 AM, Alexander Seidl wrote: > hi pat, > thats all of the code that will be executed in > categories_controller_spec.rb. the rest is commented out. Looks like this may be the same issue as the other thread. You didn't show all the code, because there's an unknown UserC

Re: [rspec-users] Can't get running a simple rspec test: assigns is always nil

2009-10-21 Thread Alexander Seidl
hi pat, thats all of the code that will be executed in categories_controller_spec.rb. the rest is commented out. i use the newest version of both gems? could that be a bug. which versions of rpsec and rspec-rails do you use? alexand...@alexanders-desktop:$ gem list -l rspec *** LOCAL GEMS ***

Re: [rspec-users] Can't get running a simple rspec test: assigns is always nil

2009-10-21 Thread Pat Maddox
Is this all of the code, or did you remove some stuff? I copied the code in a new rails app and the test passed. What versions of rspec & rspec-rails are you running? Pat On Tue, Oct 20, 2009 at 5:23 AM, Alexander Seidl wrote: > http://pastie.org/pastes/661816 > > hi, > please have a look at m

[rspec-users] Can't get running a simple rspec test: assigns is always nil

2009-10-20 Thread Alexander Seidl
http://pastie.org/pastes/661816 hi, please have a look at my code. Perhaps anybody knows a solution for that problem. Attachments: http://www.ruby-forum.com/attachment/4165/pastie-661816.txt -- Posted via http://www.ruby-forum.com/. ___ rspec-users ma