Displaying 4 results from an estimated 4 matches for "account_controller_spec".
2007 May 02
13
RSpec 0.8.2 pain, missing spec/rails?
...Things fall out.
Any tips much appreciated.
Morten
white:~/svn/novalis morten$ rake spec
(in /Users/morten/svn/novalis)
/opt/local/bin/ruby
-I"/opt/local/lib/ruby/gems/1.8/gems/rspec-0.8.2/lib"
"/opt/local/lib/ruby/gems/1.8/gems/rspec-0.8.2/bin/spec"
"spec/controllers/account_controller_spec.rb"
"spec/controllers/admin_controller_spec.rb"
"spec/controllers/auhtenticate_controller_spec.rb"
"spec/controllers/bar_controller_spec.rb"
"spec/controllers/calendar_test_controller_spec.rb"
"spec/controllers/manager_controller_spec.rb"...
2008 Jan 15
0
Problem with ruby-debug and rspec
...placement
query_reviewer
rspec
rspec_on_rails
spatial_adapter
svn
white_list
will_paginate
ym4r_gm
and am using the following gems:
GeoRuby-1.3.2
RedCloth-3.0.4
has_finder-0.1.5
json-1.1.1
mocha-0.5.5
oauth
ruby-hmac-0.3.1
brickhouse:~/code/fireeagle-rails/core/trunk rabble$ spec
spec/controllers/account_controller_spec.rb
/Users/rabble/code/fireeagle-rails/core/trunk/lib/sso_authentication/test_helper.rb:15
@controller.stubs(:current_user).returns(user)
(rdb:1) p self
INTERNAL ERROR!!! undefined method `remove_method'' for
#<Spec::Rails::Example::ControllerExampleGroup::Subclass_1:0x34a22a4>...
2013 Mar 07
3
Expected response to be a <:redirect>, but was <200>
...I have been getting the following error
SystemAccountsController GET search finds a named account directly
Failure/Error: expect(response).to
redirect_to(account_path(''test''))
Expected response to be a <:redirect>, but was <200>
# ./spec/controllers/account_controller_spec.rb:21:in `block (3
levels) in <top (required)>''
I however get a response status of 200. I am not sure what i am doing
wrong cause all my links however work correctly. Is there a way to debug
this or find where the actual response is headed to ?
--
Posted via http://www.ruby-forum....
2006 Nov 08
1
controller.session not same as session?
...> - should unset :user in session (FAILED - 1)
> - should be redirected
> - should delete remember_me token
>
> 1)
> Spec::Expectations::ExpectationNotMetError in ''A user logging out
> should unset :user in session''
> 1 should be nil
> ./spec/controllers/account_controller_spec.rb:149:in `should
> unset :user in session''
>
> Throwing a breakpoint in and examining the two reveals:
>
> >> session
> => #<ActionController::TestSession:0x3a8e794 @attributes={:user=>1,
> "flash"=>{}}>
> >> controller.sessio...