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