Sha256: 1d01d9e15ea48c698acde34595d416fe3adb39934c5ed4d556db09cb4320f449
Contents?: true
Size: 1.07 KB
Versions: 1
Compression:
Stored size: 1.07 KB
Contents
require 'rspactor/listener' describe RSpactor::Listener do before(:all) do @listener = described_class.new(:extensions => %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 in directories which start with a dot" do @listener.ignore_file?('/project/.foo/bar.rb').should be_false end it "should not ignore files without extension" do @listener.ignore_file?('/project/foo.rb').should be_false 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.4.0 | spec/listener_spec.rb |