Sha256: b405045d479881aadbc64b946bf3408aa38f7ded90b0a21bdecd665add04b9fd
Contents?: true
Size: 937 Bytes
Versions: 1
Compression:
Stored size: 937 Bytes
Contents
require File.expand_path(File.dirname(__FILE__) + '/spec_helper') describe FSEvent do describe "accessors" do it "reads and writes registered_directories" do subject.registered_directories = %w(one two) subject.registered_directories.should == %w(one two) end it "reads and writes latency" do subject.latency = 1.5 subject.latency.should == 1.5 end end describe "#watch_directories" do it "register a single directory" do subject.watch_directories '/Users' subject.registered_directories.should == ['/Users'] end it "registers an array of directories" do subject.watch_directories %w(/Users /tmp) subject.registered_directories.should == %w(/Users /tmp) end end describe "API" do it { should respond_to(:on_change) } it { should respond_to(:start) } it { should respond_to(:stop) } it { should respond_to(:restart) } end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
ruby-fsevent-0.2.0 | spec/fsevent_spec.rb |