search for: ordertest

Displaying 4 results from an estimated 4 matches for "ordertest".

Did you mean: order_test
2006 Feb 15
2
First unit test fails
...9; chapter 12 ''Testing''. I''ve followed the steps carefully, setting up a fixture and unit test to check the creation of an order. When I run the test I get the following: Loaded suite test/unit/order_test Started F Finished in 0.108008 seconds. 1) Failure: test_create(OrderTest) [test/unit/order_test.rb:17]: <"Wed Feb 15 12:56:26 GMT 2006"> expected but was <Wed Feb 15 12:56:26 GMT 2006>. 1 tests, 6 assertions, 1 failures, 0 errors My fixture populates the mySQL order table with: ''2006-02-15 12:56:26'' Is there some kind of intern...
2007 Sep 02
4
unit test failing
...test should roll back. Run individually, all my tests succeed. But running "rake test:units", I get the below error in 5 test cases. I''m not sure how to solve this since I''m not sure how to debug tasks run thru rake. Any ideas are appreciated. 1) Error: test_delete(OrderTest): ActiveRecord::RecordInvalid: Validation failed: Orders is invalid /var/lib/gems/1.8/gems/activerecord-1.15.3/lib/active_record/ validations.rb:764:in `save_without _transactions!'' /var/lib/gems/1.8/gems/activerecord-1.15.3/lib/active_record/ transactions.rb:133:in `save!''...
2005 Dec 30
1
Problems with Testing (Depot) demo app in Agile Rails book
...mly (and with voluminous messages) - see example below ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ D:\rails\depot>ruby test/unit/order_test.rb Loaded suite test/unit/order_test Started EE Finished in 0.109 seconds. 1) Error: test_truth(OrderTest): ActiveRecord::StatementInvalid: Mysql::Error: Lost connection to MySQL server during query: DELETE FROM orders c:/ruby/lib/ruby/gems/1.8/gems/activerecord-1.13.2/lib/active_record/connection_adapters/abstract_adapter.rb:88:in `log'' c:/ruby/lib/ruby/gems/1.8/gems/activerecord-1....
2006 Jun 02
0
Problem updating child row from parent model
...qual 2, @order.line_items.first.quantity @order.line_items.first.quantity = 4 assert @order.save, @order.errors.full_messages.join("; ") @order.reload assert_equal 4, @order.line_items.first.quantity end And I get the following result: 1> Failure: test_update<OrderTest> [test/unit/order_test.rb:25]: <4> expected but was <2>. I tried lots of different things, but I always get that error. I really don''t know why. Here''s the declaration of my model order.rb class Order < ActiveRecord::Base has_many :line_items, :exclus...