We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents bcb0e14 + 664a75a commit 4d3c21fCopy full SHA for 4d3c21f
test/support/watcher_test.rb
@@ -163,6 +163,19 @@ def assert_not_stale
163
assert watcher.files.empty?
164
end
165
166
+ test "add multiple files" do
167
+ File.write("#{dir}/foo", "foo")
168
+ File.write("#{dir}/bar", "bar")
169
+ watcher.add "foo", "bar"
170
+ assert_equal ["#{dir}/foo", "#{dir}/bar"], watcher.files.to_a
171
+ end
172
+
173
+ test "add files as nested array" do
174
175
+ watcher.add [["foo"]]
176
+ assert_equal ["#{dir}/foo"], watcher.files.to_a
177
178
179
test "add symlink" do
180
File.write("#{dir}/bar", "bar")
181
File.symlink("#{dir}/bar", "#{dir}/foo")
0 commit comments