Skip to content

Commit 6f0e36b

Browse files
committed
Use be(true) rather than eq(true) for readability
1 parent fe5f4bd commit 6f0e36b

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

spec/vimrunner/client_spec.rb

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -19,15 +19,15 @@ module Vimrunner
1919
client.insert 'Contents of the file'
2020
client.write
2121

22-
expect(File.exists?('some_file')).to eq(true)
22+
expect(File.exists?('some_file')).to be(true)
2323
expect(File.read('some_file').strip).to eq('Contents of the file')
2424
end
2525

2626
it "properly escapes filenames" do
2727
client.edit 'some file'
2828
client.write
2929

30-
expect(File.exists?('some file')).to eq(true)
30+
expect(File.exists?('some file')).to be(true)
3131
end
3232

3333
it "can execute commands with a bang" do
@@ -37,8 +37,8 @@ module Vimrunner
3737
client.insert 'Contents of the other file'
3838
client.command :write
3939

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)
4242
expect(File.read('some_other_file').strip).to eq('Contents of the other file')
4343
end
4444

@@ -67,7 +67,7 @@ module Vimrunner
6767

6868
it "can chain several operations" do
6969
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)
7171
expect(File.read('some_file').strip).to eq('Contents')
7272
end
7373

0 commit comments

Comments
 (0)