Sha256: 33ac481cd0cd4a59dbe6c4dd9e67c9e870998920db1fdf00b61160a791ce3176
Contents?: true
Size: 856 Bytes
Versions: 1
Compression:
Stored size: 856 Bytes
Contents
require 'rspactor/listener' describe RSpactor::Listener do before(:all) do @listener = described_class.new(%w(rb erb haml)) end it "should be timestamped" do @listener.last_event.should be_instance_of(Time) 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 |
---|---|
rspactor-0.6.2 | spec/listener_spec.rb |