On Wed, Oct 21, 2009 at 6:56 AM, Alexander Seidl wrote:
> I started a new test: Have a look at my new code:
> http://pastie.org/663455
>
> 1) The categories_controller is NOT called from the test!
>
> 2) I created another example with a message_controller and associated
> tests. There, the control
Its definitly that line that causes trouble:
class User::CategoriesController < UserController
^
...
end
If i change it to:
class User::CategoriesController < ActionController::Base
^^^
...
en
David Chelimsky wrote:
> On Wed, Oct 21, 2009 at 7:19 AM, Alexander Seidl
> wrote:
>
>> http://pastie.org/663143. The test still failes. But it shouldn't!
>>
> Rails version?
> Ruby version?
> OS?
> etc
BTW :)
The second example with the message_controller is copied from your
Book^^
Cheers,
Al
David Chelimsky wrote:
> On Wed, Oct 21, 2009 at 7:19 AM, Alexander Seidl
> wrote:
>
>> http://pastie.org/663143. The test still failes. But it shouldn't!
>>
> Rails version?
> Ruby version?
> OS?
> etc
:( Really sorry for triple answer. But my mind is weakened by all this
RAILS_GEM_VERSION = '2
David Chelimsky wrote:
> On Wed, Oct 21, 2009 at 7:19 AM, Alexander Seidl
> wrote:
>
>> http://pastie.org/663143. The test still failes. But it shouldn't!
>>
> Rails version?
> Ruby version?
> OS?
> etc
Sorry,
forgot OS:
alexand...@alexanders-desktop:$ lsb_release -a
No LSB modules are available
David Chelimsky wrote:
> On Wed, Oct 21, 2009 at 7:19 AM, Alexander Seidl
> wrote:
>
>> http://pastie.org/663143. The test still failes. But it shouldn't!
>>
> Rails version?
> Ruby version?
> OS?
> etc
Hi David,
alexand...@alexanders-desktop:$ gem list -l rspec
*** LOCAL GEMS ***
rspec (1.2.9
I started a new test: Have a look at my new code:
http://pastie.org/663455
1) The categories_controller is NOT called from the test!
2) I created another example with a message_controller and associated
tests. There, the controller IS called!
You can see that, because the puts statement produce
On Wed, Oct 21, 2009 at 7:19 AM, Alexander Seidl wrote:
> David Chelimsky wrote:
> > [...]
> > Please quote at least the relevant part of the previous email when you
> > respond
> > [...]
> yes ok, i'll keep that in mind.
>
> > If you reverse lines 6 and 7 on http://pastie.org/663143, the example
David Chelimsky wrote:
> [...]
> Please quote at least the relevant part of the previous email when you
> respond
> [...]
yes ok, i'll keep that in mind.
> If you reverse lines 6 and 7 on http://pastie.org/663143, the example
> _should_ pass, so I'm a bit mystified.
I changed this two lines. Pleas
On Wed, Oct 21, 2009 at 6:12 AM, Alexander Seidl wrote:
> hi ben,
> no impact, same result.
>
> cheers,
> Alexander
Please quote at least the relevant part of the previous email when you
respond. I can get the context if I'm looking at mail in a web browser. Not
so much on my phone.
If you reve
hi ben,
no impact, same result.
cheers,
Alexander
--
Posted via http://www.ruby-forum.com/.
___
rspec-users mailing list
rspec-users@rubyforge.org
http://rubyforge.org/mailman/listinfo/rspec-users
2009/10/21 Alexander Seidl
> Alexander Seidl wrote:
> > i call current_user in the index-method, but the test fails and says:
> > "# expected :current_user with
> > (any args) once, but received it 0 times"
> >
> > Why?
>
>
Try putting line 7 before line 6.
Cheers,
Ben
__
Alexander Seidl wrote:
> i call current_user in the index-method, but the test fails and says:
> "# expected :current_user with
> (any args) once, but received it 0 times"
>
> Why?
i forgot "get :index" in test. but anyways, no impact. same result.
http://pastie.org/663143
--
Posted via http://
i call current_user in the index-method, but the test fails and says:
"# expected :current_user with
(any args) once, but received it 0 times"
Why?
Attachments:
http://www.ruby-forum.com/attachment/4166/pastie-663143.rb
--
Posted via http://www.ruby-forum.com/.
_
14 matches
Mail list logo