Skip to content

Commit

Permalink
Add spec examples covering real mutagen filenames
Browse files Browse the repository at this point in the history
  • Loading branch information
nilbus committed Oct 26, 2019
1 parent 99aae3b commit 7f65697
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions spec/lib/listen/silencer_spec.rb
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# encoding: UTF-8

RSpec::Matchers.define :accept do |type, path|
match { |actual| !actual.silenced?(Pathname(path), type) }
end
Expand Down Expand Up @@ -35,6 +37,12 @@
# sed temp files
ignored += %w(sedq7eVAR sed86w1kB)

# mutagen temp files
ignored += %w(
.mutagen-temporary-cross-device-rename0
.mutagen-temporary-unicode-test-éntry0
)

ignored.each do |path|
it { should_not accept(:file, path) }
end
Expand Down

0 comments on commit 7f65697

Please sign in to comment.