search for: itemtest

Displaying 3 results from an estimated 3 matches for "itemtest".

Did you mean: stemtest
2006 Apr 28
5
Ferret failing to rebuild_index - occasionally unable to del
...Item.rebuild_index end This works fine for the initial few tests but then suddenly fails for the last few tests when it seems to be failing to delete a file. Loaded suite E:/rails/thatsprogress/test/unit/item_test Started ........EEEE Finished in 8.922 seconds. 1) Error: test_search_for_count(ItemTest): Errno::EACCES: Permission denied - E:/rails/thatsprogress/config/../index/test/Item/_j.cfs .... Full trace included later. It consistantly does it at this point, and looks like something is stopping _j.cfs from being deleted. Any ideas on what''s going on and how to stop it? Thanks...
2006 Apr 28
0
Ferret failing to rebuild_index - occasionally unable to delete a file (_j.cfs)
...tem.rebuild_index end This works fine for the initial few tests but then suddenly fails for the last few tests when it seems to be failing to delete a file. Loaded suite E:/rails/thatsprogress/test/unit/item_test Started ........EEEE Finished in 8.922 seconds. 1) Error: test_search_for_count(ItemTest): Errno::EACCES: Permission denied - E:/rails/thatsprogress/config/../index/test/Item/_j.cfs .... Full trace included later. It consistantly does it at this point, and looks like something is stopping _j.cfs from being deleted. Any ideas on what''s going on and how to stop it? Thanks...
2007 Sep 05
2
after_create callback called twice in test env when using fixtures
...then I''ll open one. The model: class Item < ActiveRecord::Base after_create :do_stuff def do_stuff puts "Doing stuff" end end The test: require File.dirname(__FILE__) + ''/../test_helper'' require ''item'' class ItemTest < Test::Unit::TestCase fixtures :items def test_callback @item = Item.new puts "========================" @item.save puts "========================" end end The fixture file: one: id: 1 two: id: 2 The rake run: # rake t...