fchange_spec.rb

Path: lib/vendor/windows/spec/rb-fchange/fchange_spec.rb
Last Update: Sun Apr 01 05:40:34 +0000 2012

Required files

spec_helper  

Methods

run   stop  

Public Instance methods

it "should work with none-ANSI path" do

  dir = @fixture_path.join("../тест")
  Dir.mkdir dir unless Dir.exists? dir
  file = dir.join("тест");
  File.delete file if File.exists? file
  File.exists?(file).should be_false
  @notifier.watch(dir.to_s, :all_events, :recursive) do |event|
    @results += [event.watcher.path]
  end
  run
  FileUtils.touch file
  stop
  File.delete file
  Dir.delete dir
  @results.should == [@fixture_path.to_s, @fixture_path.to_s]

end

[Validate]