Forum: Ruby on Rails acts_as_authnticated test problems

Announcement (2017-05-07): www.ruby-forum.com is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see rubyonrails.org/community and ruby-lang.org/en/community for other Rails- und Ruby-related community platforms.
Mark (Guest)
on 2007-07-03 15:13
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
This topic is locked and can not be replied to.