test/file_item_test.rb in adrian-1.0.0 vs test/file_item_test.rb in adrian-1.0.1

- old
+ new

@@ -23,9 +23,21 @@ item3 = Adrian::FileItem.new('path/a') assert_equal item1, item3 end + describe 'updated_at' do + + it 'is nil when moved by another process' do + assert @item.updated_at + File.unlink(@item.path) + assert_equal false, @item.exist? + + assert_equal nil, @item.updated_at + end + + end + describe 'move' do before do @destination = Dir.mktmpdir('file_item_move_test') end