Sha256: df5e374fb76322080886207e844b55899b10d7d201dc30e6cbbddd662a81efaf
Contents?: true
Size: 908 Bytes
Versions: 1
Compression:
Stored size: 908 Bytes
Contents
require 'listener' describe Listener do before(:all) do @listener = Listener.new(%w(rb erb haml)) end it "should be timestamped" do @listener.last_check.should be_instance_of(Time) end it "should not ignore regular directories" do @listener.ignore_path?('/project/foo/bar').should_not be end it "should ignore .git directories" do @listener.ignore_path?('/project/.git/index').should be end it "should ignore dotfiles" do @listener.ignore_file?('/project/.foo').should be end it "should not ignore files without extension" do @listener.ignore_file?('/project/foo.rb').should_not be end it "should ignore files without extension" do @listener.ignore_file?('/project/foo').should be end it "should ignore files with extensions that don't match those specified" do @listener.ignore_file?('/project/foo.bar').should be end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
mislav-rspactor-0.3.0 | spec/listener_spec.rb |