@@ -149,13 +149,13 @@ def assert_not_stale
149
149
test "add relative path" do
150
150
File . write ( "#{ dir } /foo" , "foo" )
151
151
watcher . add "foo"
152
- assert_equal [ "#{ dir } /foo" ] , watcher . files . to_a
152
+ assert_equal [ "#{ dir } /foo" ] , watcher . files . keys
153
153
end
154
154
155
155
test "add dot relative path" do
156
156
File . write ( "#{ dir } /foo" , "foo" )
157
157
watcher . add "./foo"
158
- assert_equal [ "#{ dir } /foo" ] , watcher . files . to_a
158
+ assert_equal [ "#{ dir } /foo" ] , watcher . files . keys
159
159
end
160
160
161
161
test "add non existent file" do
@@ -167,20 +167,20 @@ def assert_not_stale
167
167
File . write ( "#{ dir } /foo" , "foo" )
168
168
File . write ( "#{ dir } /bar" , "bar" )
169
169
watcher . add "foo" , "bar"
170
- assert_equal [ "#{ dir } /foo" , "#{ dir } /bar" ] , watcher . files . to_a
170
+ assert_equal [ "#{ dir } /foo" , "#{ dir } /bar" ] , watcher . files . keys
171
171
end
172
172
173
173
test "add files as nested array" do
174
174
File . write ( "#{ dir } /foo" , "foo" )
175
175
watcher . add [ [ "foo" ] ]
176
- assert_equal [ "#{ dir } /foo" ] , watcher . files . to_a
176
+ assert_equal [ "#{ dir } /foo" ] , watcher . files . keys
177
177
end
178
178
179
179
test "add symlink" do
180
180
File . write ( "#{ dir } /bar" , "bar" )
181
181
File . symlink ( "#{ dir } /bar" , "#{ dir } /foo" )
182
182
watcher . add './foo'
183
- assert_equal [ "#{ dir } /bar" ] , watcher . files . to_a
183
+ assert_equal [ "#{ dir } /bar" ] , watcher . files . keys
184
184
end
185
185
186
186
test "add dangling symlink" do
0 commit comments