# \[Help\] Rake test:functionals failed

**URL:** <https://www.ruby-forum.com/t/help-rake-test-functionals-failed/188728>\
**Category:** Rails\
**Created:** [May 17, 2010, 12:00pm UTC](https://www.ruby-forum.com/t/help-rake-test-functionals-failed/188728 "2010-05-17T12:00:58Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![neckie](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/n/e47774/32.png) [@neckie](https://www.ruby-forum.com/u/neckie)\
**Post date:** [May 17, 2010, 12:00pm UTC](https://www.ruby-forum.com/t/help-rake-test-functionals-failed/188728/1 "2010-05-17T12:00:58Z")

</div>

Hi all,  
Im a new user for using Rails,  
I got the 3 error msg as belows,

/usr/bin/ruby1.8 -I"lib:test" “/home/mioinst/.gem/ruby/1.8/gems/  
rake-0.8.7/lib/rake/rake\_test\_loader.rb” “test/functional/  
way\_controller\_test.rb” “test/functional/  
diary\_entry\_controller\_test.rb” “test/functional/  
amf\_controller\_test.rb” “test/functional/relation\_controller\_test.rb”  
“test/functional/swf\_controller\_test.rb” “test/functional/  
message\_controller\_test.rb” “test/functional/  
changeset\_tag\_controller\_test.rb” “test/functional/  
node\_controller\_test.rb” “test/functional/old\_node\_controller\_test.rb”  
“test/functional/search\_controller\_test.rb” “test/functional/  
user\_preference\_controller\_test.rb” “test/functional/  
user\_controller\_test.rb” “test/functional/old\_way\_controller\_test.rb”  
“test/functional/trace\_controller\_test.rb” “test/functional/  
api\_controller\_test.rb” “test/functional/friend\_controller\_test.rb”  
“test/functional/old\_relation\_controller\_test.rb” “test/functional/  
geocoder\_controller\_test.rb” “test/functional/  
changeset\_controller\_test.rb” “test/functional/  
browse\_controller\_test.rb” “test/functional/export\_controller\_test.rb”  
“test/functional/site\_controller\_test.rb”  
Loaded suite /home/mioinst/.gem/ruby/1.8/gems/rake-0.8.7/lib/rake/  
rake\_test\_loader  
Started  
…F.F.F…  
Finished in -3824716.83084 seconds.

1. Failure:  
test\_changes\_simple(ApiControllerTest) [/test/functional/  
api\_controller\_test.rb:204]:  
Expected response to be a \<:success\>, but was \<500\>  
\<""\>

2. Failure:  
test\_changes\_zoom\_valid(ApiControllerTest)  
[/test/functional/api\_controller\_test.rb:228:in  
`test_changes_zoom_valid' /test/functional/api_controller_test.rb:226:in`upto’  
/test/functional/api\_controller\_test.rb:226:in  
`test\_changes\_zoom\_valid’]:  
Expected response to be a \<:success\>, but was \<500\>  
\<""\>

3. Failure:  
test\_hours\_valid(ApiControllerTest)  
[/test/functional/api\_controller\_test.rb:257:in `test_hours_valid' /test/functional/api_controller_test.rb:255:in`upto’  
/test/functional/api\_controller\_test.rb:255:in  
`test\_hours\_valid’]:  
Expected response to be a \<:success\>, but was \<500\>  
\<""\>

180 tests, 2341 assertions, 3 failures, 0 errors

I have no idea how to fix this problem, Could someone know how to fix  
this please?  
Thank you so much.

Best Wishes,  
Neckie.

---

<div class="post-metadata">

**Author:** ![neckie](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/n/e47774/32.png) [@neckie](https://www.ruby-forum.com/u/neckie)\
**Post date:** [May 17, 2010, 11:03pm UTC](https://www.ruby-forum.com/t/help-rake-test-functionals-failed/188728/2 "2010-05-17T23:03:38Z")

</div>

On 17 May 2010 10:38, neckie [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid) wrote:

> test\_changes\_simple(ApiControllerTest) [/test/functional/  
> api\_controller\_test.rb:204]:  
> Expected response to be a \<:success\>, but was \<500\>  
> \<“”\>

If you look in test.log you may get some clues as to why you are  
getting the 500 error.  
Have you setup database.yml to refer correctly to the test database?

Colin

---

<div class="post-metadata">

**Author:** ![neckie](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/n/e47774/32.png) [@neckie](https://www.ruby-forum.com/u/neckie)\
**Post date:** [May 21, 2010, 7:59am UTC](https://www.ruby-forum.com/t/help-rake-test-functionals-failed/188728/3 "2010-05-21T07:59:45Z")

</div>

Dear Colin,  
Thanks for you help. I’ve already fix this problem.

Thank you so much. ^^
