small medium large xlarge

Generic-user-small
14 Apr 2012, 14:54
Dwayne Campbell (2 posts)

Ruby - 1.9.2p312 Rails - 3.2.3

The unit test currently fails. Even when I use the sample code it still fails. Has anyone else had this problem

rake test
(in /Users/dwaynecampbell/Development/depot)
Loaded suite /Users/dwaynecampbell/.rvm/gems/ruby-1.9.2-head@rails310/gems/rake-0.9.2.2/lib/rake/rake_test_loader
Started

Finished in 0.002750 seconds.

0 tests, 0 assertions, 0 failures, 0 errors, 0 skips

Test run options: --seed 2544
Loaded suite /Users/dwaynecampbell/.rvm/gems/ruby-1.9.2-head@rails310/gems/rake-0.9.2.2/lib/rake/rake_test_loader
Started
F.....F
Finished in 0.263538 seconds.

  1) Failure:
test_should_create_product(ProductsControllerTest) [/Users/dwaynecampbell/Development/depot/test/functional/products_controller_test.rb:34]:
"Product.count" didn't change by 1.
<3> expected but was
<2>.

  2) Failure:
test_should_update_product(ProductsControllerTest) [/Users/dwaynecampbell/Development/depot/test/functional/products_controller_test.rb:55]:
Expected response to be a , but was <200>

7 tests, 9 assertions, 2 failures, 0 errors, 0 skips

Test run options: --seed 35515
Errors running test:functionals! #<RuntimeError: Command failed with status (1): [/Users/dwaynecampbell/.rvm/rubies/ruby-1.9...]>
Skillachie:functional dwaynecampbell$ ruby -v
ruby 1.9.2p312 (2011-08-11 revision 32926) [x86_64-darwin10.7.0]

Generic-user-small
14 Apr 2012, 16:56
Dwayne Campbell (2 posts)

Got it, had an error in my model that I seemed to have missed

You must be logged in to comment