search for: entity_test

Displaying 2 results from an estimated 2 matches for "entity_test".

2006 Jan 30
0
const_missing: uninitialized constant Test when running unit tests
...on one machine. On another machine when running the same tests we get: /usr/lib/ruby/gems/1.8/gems/activesupport-1.2.5/lib/active_support/dependencies.rb:200:in `const_missing'': uninitialized constant Test (NameError) from ./test/unit/../test_helper.rb:5 from test/unit/entity_test.rb:1:in `require'' from test/unit/entity_test.rb:1 It is almost if the Test object itself just doesn''t exist. The machine that it does not work on used to be rails 0.14 and has been upgraded to 1.0. The machine it works on has been 1.0 for some time. We have tried un...
2007 Mar 23
2
Mocha 0.4.0 Hates My App
...and my units (which were clean) are now reporting 97 failures (!!!). Every failure reports a callstack like this: 18) Error: test_created_at(EntityTest): NoMethodError: You have a nil object when you didn''t expect it! The error occured while evaluating nil.created_at ./test/unit/entity_test.rb:199:in `test_created_at'' /opt/local/lib/ruby/gems/1.8/gems/mocha-0.4.0/lib/mocha/ test_case_adapter.rb:19:in `run'' Interestingly, this method runs fine when run alone, but not in the test:units suite or when the entire EntityTest is run. It relies on a @entity from t...