Displaying 1 result from an estimated 1 matches for "regions_controller_test".
2006 Jan 30
5
Functional tests and dealing with login before_filter
...ller.
I tried setting session[:user] directly in the setup method, but that gave me
strange errors:
fixtures :regions
def setup
...
# I tried a few different things here...
session[:user] = { :attributes => {:user => "foo"} }
end
TypeError: Symbol as array index
regions_controller_test.rb:16:in `[]=''
regions_controller_test.rb:16:in `setup_without_fixtures''
/opt/lib/ruby/gems/1.8/gems/activerecord-1.13.2/lib/active_record/fixtures.rb:523:in
`setup''
Any advice appreciated.
Thanks,
Dan