ve-behaviour
many thanks,
enricostn
--
· Enrico Stano
·
· twitter @enricostano
· skype ocirneonats
___
rspec-users mailing list
rspec-users@rubyforge.org
http://rubyforge.org/mailman/listinfo/rspec-users
Hi Ben,
you could find more info browsing this Gist
https://gist.github.com/3848429#file_user_controller_spec.rb
I've added it to my StackOverflow question too.
Thank you for your time!
ennrico
2012/10/9 Ben Lovell :
> Hi,
>
> On 9 October 2012 13:04, enrico stano w
one is
called by my UserController. But I want RSpec to tell me that in order
to check this behaviour right.
Something like (pseudo code)
User.should_receive(:find).with("1").called_by(User.authorize!)
Any hint?
thank you!
2012/10/9 enrico stano :
> Hi Ben,
>
> you c
/10/9 Andy Lindeman :
> On Tue, Oct 9, 2012 at 8:56 AM, enrico stano wrote:
>> Hi Ben,
>>
>> you could find more info browsing this Gist
>> https://gist.github.com/3848429#file_user_controller_spec.rb
>>
>> I've added it to my StackOverflow question
ok, thank you very much for your time!
bye,
enrico
On Tuesday, October 9, 2012, Ben Lovell wrote:
>
> On 9 October 2012 14:46, enrico stano 'cvml', 'enrico...@gmail.com');>
> > wrote:
>
>> yes, it's CanCan fault! ;)
>>
; do
> get :index
> response.should render_template :index
> end
> end
>
>
> It raises a failure for index
>
> 2) PlansController GET index populates an array of plans
> Failure/Error: plan = create(:plan)
> NoMethodError:
>