File tree Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -19,15 +19,15 @@ module Vimrunner
19
19
client . insert 'Contents of the file'
20
20
client . write
21
21
22
- expect ( File . exists? ( 'some_file' ) ) . to eq ( true )
22
+ expect ( File . exists? ( 'some_file' ) ) . to be ( true )
23
23
expect ( File . read ( 'some_file' ) . strip ) . to eq ( 'Contents of the file' )
24
24
end
25
25
26
26
it "properly escapes filenames" do
27
27
client . edit 'some file'
28
28
client . write
29
29
30
- expect ( File . exists? ( 'some file' ) ) . to eq ( true )
30
+ expect ( File . exists? ( 'some file' ) ) . to be ( true )
31
31
end
32
32
33
33
it "can execute commands with a bang" do
@@ -37,8 +37,8 @@ module Vimrunner
37
37
client . insert 'Contents of the other file'
38
38
client . command :write
39
39
40
- expect ( File . exists? ( 'some_file' ) ) . to eq ( false )
41
- expect ( File . exists? ( 'some_other_file' ) ) . to eq ( true )
40
+ expect ( File . exists? ( 'some_file' ) ) . to be ( false )
41
+ expect ( File . exists? ( 'some_other_file' ) ) . to be ( true )
42
42
expect ( File . read ( 'some_other_file' ) . strip ) . to eq ( 'Contents of the other file' )
43
43
end
44
44
@@ -67,7 +67,7 @@ module Vimrunner
67
67
68
68
it "can chain several operations" do
69
69
client . edit ( 'some_file' ) . insert ( 'Contents' ) . write
70
- expect ( File . exists? ( 'some_file' ) ) . to eq ( true )
70
+ expect ( File . exists? ( 'some_file' ) ) . to be ( true )
71
71
expect ( File . read ( 'some_file' ) . strip ) . to eq ( 'Contents' )
72
72
end
73
73
You can’t perform that action at this time.
0 commit comments