Changeset 90

Show
Ignore:
Timestamp:
04/08/08 02:40:06 (8 months ago)
Author:
eric.dumin..@gmail.com
Message:

FileUtils#touch? :mtime => replaced by File.utime(0,mtime)

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • branches/picolena_newgem/app_generators/picolena/templates/spec/models/finder_spec.rb

    r86 r90  
    11require File.dirname(__FILE__) + '/../spec_helper' 
    2 require 'fileutils' 
    32 
    43describe Finder do 
     
    98    } 
    109 
     10 
     11    once_upon_a_time=Time.local(1982,2,16,20,42) 
     12    a_bit_later=Time.local(1983,12,9,9) 
     13    nineties=Time.local(1990) 
    1114    # Used for modification date search. 
    12     FileUtils.touch 'spec/test_dirs/indexed/basic/basic.pdf', :mtime => Time.local(1982,2,16,20,42) 
    13     FileUtils.touch 'spec/test_dirs/indexed/yet_another_dir/office2003-word-template.dot', :mtime => Time.local(1983,12,9,9) 
    14     FileUtils.touch 'spec/test_dirs/indexed/others/placeholder.txt', :mtime => Time.local(1990) 
    15      
     15    File.utime(0, once_upon_a_time, 'spec/test_dirs/indexed/basic/basic.pdf') 
     16    File.utime(0, a_bit_later, 'spec/test_dirs/indexed/yet_another_dir/office2003-word-template.dot') 
     17    File.utime(0, nineties, 'spec/test_dirs/indexed/others/placeholder.txt') 
    1618    Finder.force_index_creation 
    1719  end