Sha256: fa0341b2aecb0b6feab8cbf0b8e8fae155d3a946456416c0088932ae2f0ff51e
Contents?: true
Size: 670 Bytes
Versions: 6
Compression:
Stored size: 670 Bytes
Contents
load File.dirname(__FILE__) + '/spec_helper.rb' require 'fileutils' describe Rake::Microsecond::DirectoryTask do include RakeBuilderHelper include FileUtils before :all do @path = File.join(File.dirname(__FILE__), 'microsecond_directory') end before :each do rm_rf @path, :verbose => false end it 'should memorize the directory creation time including fractional seconds' do File.directory?( @path ).should be_false t = Rake::Microsecond::DirectoryTask.define_task( @path ) isolating_seconds do sleep 0.01 t.invoke end File.directory?( @path ).should be_true t.timestamp.usec.should_not == 0 end end
Version data entries
6 entries across 6 versions & 1 rubygems