File tree 1 file changed +5
-5
lines changed
1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change 26
26
end
27
27
28
28
it "should have a watcher_path that resolves to an executable file" do
29
- expect ( File . exists ?( FSEvent . watcher_path ) ) . to be true
29
+ expect ( File . exist ?( FSEvent . watcher_path ) ) . to be true
30
30
expect ( File . executable? ( FSEvent . watcher_path ) ) . to be true
31
31
end
32
32
33
33
it "should catch new file" do
34
34
file = @fixture_path . join ( "newfile.rb" )
35
- File . delete file if File . exists ? file
35
+ File . delete file if File . exist ? file
36
36
run
37
37
FileUtils . touch file
38
38
stop
42
42
43
43
it "should catch file update" do
44
44
file = @fixture_path . join ( "folder1/file1.txt" )
45
- expect ( File . exists ?( file ) ) . to be true
45
+ expect ( File . exist ?( file ) ) . to be true
46
46
run
47
47
FileUtils . touch file
48
48
stop
52
52
it "should catch files update" do
53
53
file1 = @fixture_path . join ( "folder1/file1.txt" )
54
54
file2 = @fixture_path . join ( "folder1/folder2/file2.txt" )
55
- expect ( File . exists ?( file1 ) ) . to be true
56
- expect ( File . exists ?( file2 ) ) . to be true
55
+ expect ( File . exist ?( file1 ) ) . to be true
56
+ expect ( File . exist ?( file2 ) ) . to be true
57
57
run
58
58
FileUtils . touch file1
59
59
FileUtils . touch file2
You can’t perform that action at this time.
0 commit comments