Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8441565
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 10, 20262026-06-10T08:35:38+00:00 2026-06-10T08:35:38+00:00

I am running the functional test in Ruby and they are failing. I’m getting

  • 0

I am running the functional test in Ruby and they are failing.

I’m getting this as result from running rake test:functionals

  1) Failure:
test_should_create_user(UsersControllerTest) [test/functional/users_controller_t
est.rb:20]:
"User.count" didn't change by 1.
<3> expected but was
<2>.

14 tests, 19 assertions, 1 failures, 0 errors
Errors running test:functionals! #<#<Class:0x472b82e5>: Command failed with stat
us (1): [c:/jruby-1.6.7.2/bin/jruby.exe -I"lib;test...]>

I already check the log file looking for SQL errors but everything seems ok.

Any idea why is this failing?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-10T08:35:39+00:00Added an answer on June 10, 2026 at 8:35 am

    I assume that you haven’t changed the test file, and it was automatically generated.

    In this case, because there are no SQL errors, there must have been a problem with the test and/or the controller.

    Assuming there is nothing wrong with the controller, the likely problems are:

    • the values of the attributes your test is sending to the controller are not valid (due to validation in your model)

    • the test is not authorized to create the object (if you are using devise, you need to sign in within the test)

    Otherwise, the controller might have a bug.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

In my (Rails 3.2) Test::Unit controller/functional tests, assert_routing is failing with this error: 1)
Hi I'm getting a symbol not found error, when running mvn -e integration-test .
When running unit and functional tests using rake, on a rails application, I notice
When running my functional tests, I'm getting the following warning in one of the
Looking at the Rails Guides http://guides.rubyonrails.org/testing.html#integration-testing-examples and this SO question Rails Functional Test of
What is best way to set web-application database state before running JMeter functional test
I've read numerous similar questions, but the answers simply didn't work. Running this function
I'm setting up a functional test suite for an application that loads an external
What is the best way of creating functional tests to test forms with CSRF
When running functional tests on my controller code in a Rails 3 project, I

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.