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
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
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,
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
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
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 ***
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
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