Displaying 1 result from an estimated 1 matches for "file_record_test".
2007 Dec 21
5
Mocha and rails 2.0.2?
.../home/wolpert/svn/rubylms/vendor/plugins/mocha/lib/mocha/class_method.rb:14:in
`stub''
/home/wolpert/svn/rubylms/vendor/plugins/mocha/lib/mocha/central.rb:13:in
`stub''
/home/wolpert/svn/rubylms/vendor/plugins/mocha/lib/mocha/object.rb:40:in
`expects''
test/unit/file_record_test.rb:90:in
`test_set_to_process_fail_in_transaction''
...
In this case, the line that is blowing up is this one:
File.expects(:exists?).times(2).returns(true)
and fails with this too...
File.expects(:exists?).returns(true)
further checking show it fails with stubs, like this......