Skip to content
Browse files

Do not care about array order when matching filter and ignore lists

  • Loading branch information...
1 parent 2b664fb commit 83537b2fa6f874f2027e25c240aab80de0dd923a Andras Tarsoly committed
Showing with 2 additions and 2 deletions.
  1. +2 −2 spec/listen/directory_record_spec.rb
View
4 spec/listen/directory_record_spec.rb
@@ -50,7 +50,7 @@
describe '#ignore!' do
it 'replace the ignored paths in the record' do
subject.ignore!(%r{^\.old/}, %r{\.pid$})
- subject.ignoring_patterns.should eql [%r{^\.old/}, %r{\.pid$}]
+ subject.ignoring_patterns.should =~ [%r{^\.old/}, %r{\.pid$}]
end
end
@@ -64,7 +64,7 @@
describe '#filter!' do
it 'replaces the passed regexps in the list of filters that determine the stored paths' do
subject.filter!(%r{\.(?:jpe?g|gif|png)}, %r{\.(?:mp3|ogg|a3c)})
- subject.filtering_patterns.should eql [%r{\.(?:jpe?g|gif|png)}, %r{\.(?:mp3|ogg|a3c)}]
+ subject.filtering_patterns.should =~ [%r{\.(?:mp3|ogg|a3c)}, %r{\.(?:jpe?g|gif|png)}]
end
end

0 comments on commit 83537b2

Please sign in to comment.
Something went wrong with that request. Please try again.