Displaying 2 results from an estimated 2 matches for "should_be_nil".
2006 Nov 08
1
controller.session not same as session?
...> users(:quentin).remember_me
> request.cookies["auth_token"] = cookie_for(:quentin)
> end
>
> def logout
> get :logout
> end
>
> specify "should unset :user in session" do
> logout
> controller.session[:user].should_be_nil
> end
>
> specify "should unset :user in controller.session" do
> logout
> controller.session[:user].should_be_nil
> end
> end
>
> The result:
>
> A user logging out
> - should unset :user in controller.session
> - should unset :us...
2007 May 30
2
should_eql etc?
..., I''m trying the specs for restful_authentication I found here
http://jonathan.tron.name/articles/2007/01/02/rspec-on-rails-restful-
authentication
It seems to use custom .should methods: should_eql,
should_be_an_instance_of, should_redirect_to, should_be_success,
should_not_be_nil, should_be_nil, should_not_be_nil, should_be_empty,
should_be_success, should_not_change, and should_not_be_activated
Is this using an old version of rspec, and/or do i need to define
these methods and how?
thanks
linoj