Hi,
I have the following functional test in my account_controller_test
that seems to fall over when it gets to the create method function with
the following error message:
NoMethodError: undefined method `create'' for :user:Symbol
Anyone got any suggestions to whats going wrong?
#
#
def test_should_allow_signup
assert_difference User, :count do
create_user
assert_response :redirect
end
end
protected
def create_user(options = {})
post :signup, :user.create({ :login => ''user23'',
:forename => ''test'',
:surname => ''user'',
:password => ''quiref'',
:password_confirmation =>
''quiref''
}.merge(options))
end
--
Posted via http://www.ruby-forum.com/.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Ruby on Rails: Talk" group.
To post to this group, send email to
rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
To unsubscribe from this group, send email to
rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
For more options, visit this group at
http://groups.google.com/group/rubyonrails-talk?hl=en
-~----------~----~----~----~------~----~------~--~---