Skip to content

Commit 6f21d7c

Browse files
committed
File.exists? -> File.exist?
1 parent cae51a9 commit 6f21d7c

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

spec/rb-fsevent/fsevent_spec.rb

+5-5
Original file line numberDiff line numberDiff line change
@@ -26,13 +26,13 @@
2626
end
2727

2828
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
3030
expect(File.executable?(FSEvent.watcher_path)).to be true
3131
end
3232

3333
it "should catch new file" do
3434
file = @fixture_path.join("newfile.rb")
35-
File.delete file if File.exists? file
35+
File.delete file if File.exist? file
3636
run
3737
FileUtils.touch file
3838
stop
@@ -42,7 +42,7 @@
4242

4343
it "should catch file update" do
4444
file = @fixture_path.join("folder1/file1.txt")
45-
expect(File.exists?(file)).to be true
45+
expect(File.exist?(file)).to be true
4646
run
4747
FileUtils.touch file
4848
stop
@@ -52,8 +52,8 @@
5252
it "should catch files update" do
5353
file1 = @fixture_path.join("folder1/file1.txt")
5454
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
5757
run
5858
FileUtils.touch file1
5959
FileUtils.touch file2

0 commit comments

Comments
 (0)