# Acts\_as\_authnticated test problems

**URL:** <https://www.ruby-forum.com/t/acts-as-authnticated-test-problems/108428>\
**Category:** Rails\
**Created:** [July 3, 2007, 1:13pm UTC](https://www.ruby-forum.com/t/acts-as-authnticated-test-problems/108428 "2007-07-03T13:13:43Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![mark](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/m/e9c0ed/32.png) [@mark](https://www.ruby-forum.com/u/mark)\
**Post date:** [July 3, 2007, 1:13pm UTC](https://www.ruby-forum.com/t/acts-as-authnticated-test-problems/108428/1 "2007-07-03T13:13:43Z")

</div>

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
