Skip to content

Commit a2cb2aa

Browse files
committed
Replace be_false with be false
1 parent 679292d commit a2cb2aa

11 files changed

+32
-32
lines changed

spec/actions/create_file_spec.rb

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ def silence!
3636
it "does not create a file if pretending" do
3737
create_file("doc/config.rb", {}, :pretend => true)
3838
invoke!
39-
expect(File.exists?(File.join(destination_root, "doc/config.rb"))).to be_false
39+
expect(File.exists?(File.join(destination_root, "doc/config.rb"))).to be false
4040
end
4141

4242
it "shows created status to the user" do
@@ -140,20 +140,20 @@ def silence!
140140
create_file("doc/config.rb")
141141
invoke!
142142
revoke!
143-
expect(File.exists?(@action.destination)).to be_false
143+
expect(File.exists?(@action.destination)).to be false
144144
end
145145

146146
it "does not raise an error if the file does not exist" do
147147
create_file("doc/config.rb")
148148
revoke!
149-
expect(File.exists?(@action.destination)).to be_false
149+
expect(File.exists?(@action.destination)).to be false
150150
end
151151
end
152152

153153
describe "#exists?" do
154154
it "returns true if the destination file exists" do
155155
create_file("doc/config.rb")
156-
expect(@action.exists?).to be_false
156+
expect(@action.exists?).to be false
157157
invoke!
158158
expect(@action.exists?).to be_true
159159
end
@@ -162,7 +162,7 @@ def silence!
162162
describe "#identical?" do
163163
it "returns true if the destination file exists and is identical" do
164164
create_file("doc/config.rb")
165-
expect(@action.identical?).to be_false
165+
expect(@action.identical?).to be false
166166
invoke!
167167
expect(@action.identical?).to be_true
168168
end

spec/actions/create_link_spec.rb

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ def silence!
4545
invoke!
4646
destination_path = @hardlink_to
4747
expect(File.exists?(destination_path)).to be_true
48-
expect(File.symlink?(destination_path)).to be_false
48+
expect(File.symlink?(destination_path)).to be false
4949
end
5050

5151
it "creates a symbolic link by default" do
@@ -59,7 +59,7 @@ def silence!
5959
it "does not create a link if pretending" do
6060
create_link("doc/config.rb", {}, :pretend => true)
6161
invoke!
62-
expect(File.exists?(File.join(destination_root, "doc/config.rb"))).to be_false
62+
expect(File.exists?(File.join(destination_root, "doc/config.rb"))).to be false
6363
end
6464

6565
it "shows created status to the user" do
@@ -77,7 +77,7 @@ def silence!
7777
describe "#identical?" do
7878
it "returns true if the destination link exists and is identical" do
7979
create_link("doc/config.rb")
80-
expect(@action.identical?).to be_false
80+
expect(@action.identical?).to be false
8181
invoke!
8282
expect(@action.identical?).to be_true
8383
end
@@ -89,7 +89,7 @@ def silence!
8989
invoke!
9090
File.delete(@tempfile.path)
9191
revoke!
92-
expect(File.symlink?(@action.destination)).to be_false
92+
expect(File.symlink?(@action.destination)).to be false
9393
end
9494
end
9595
end

spec/actions/directory_spec.rb

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ def exists_and_identical?(source_path, destination_path)
4242

4343
it "does not create a directory in pretend mode" do
4444
invoke! "doc", "ghost", :pretend => true
45-
expect(File.exists?("ghost")).to be_false
45+
expect(File.exists?("ghost")).to be false
4646
end
4747

4848
it "copies the whole directory recursively to the default destination" do
@@ -62,16 +62,16 @@ def exists_and_identical?(source_path, destination_path)
6262
expect(File.exists?(file)).to be_true
6363

6464
file = File.join(destination_root, "commands", "doc")
65-
expect(File.exists?(file)).to be_false
65+
expect(File.exists?(file)).to be false
6666

6767
file = File.join(destination_root, "commands", "doc", "README")
68-
expect(File.exists?(file)).to be_false
68+
expect(File.exists?(file)).to be false
6969
end
7070

7171
it "ignores files within excluding/ directories when exclude_pattern is provided" do
7272
invoke! "doc", "docs", :exclude_pattern => /excluding\//
7373
file = File.join(destination_root, "docs", "excluding", "rdoc.rb")
74-
expect(File.exists?(file)).to be_false
74+
expect(File.exists?(file)).to be false
7575
end
7676

7777
it "copies and evaluates files within excluding/ directory when no exclude_pattern is present" do
@@ -112,7 +112,7 @@ def exists_and_identical?(source_path, destination_path)
112112
it "does not copy .empty_directory files" do
113113
invoke! "doc", "docs"
114114
file = File.join(destination_root, "docs", "components", ".empty_directory")
115-
expect(File.exists?(file)).to be_false
115+
expect(File.exists?(file)).to be false
116116
end
117117

118118
it "copies directories even if they are empty" do
@@ -153,17 +153,17 @@ def exists_and_identical?(source_path, destination_path)
153153
invoke! "doc"
154154
revoke! "doc"
155155

156-
expect(File.exists?(File.join(destination_root, "doc", "README"))).to be_false
157-
expect(File.exists?(File.join(destination_root, "doc", "config.rb"))).to be_false
158-
expect(File.exists?(File.join(destination_root, "doc", "components"))).to be_false
156+
expect(File.exists?(File.join(destination_root, "doc", "README"))).to be false
157+
expect(File.exists?(File.join(destination_root, "doc", "config.rb"))).to be false
158+
expect(File.exists?(File.join(destination_root, "doc", "components"))).to be false
159159
end
160160

161161
it "works with glob characters in the path" do
162162
invoke! "app{1}"
163163
expect(File.exists?(File.join(destination_root, "app{1}", "README"))).to be_true
164164

165165
revoke! "app{1}"
166-
expect(File.exists?(File.join(destination_root, "app{1}", "README"))).to be_false
166+
expect(File.exists?(File.join(destination_root, "app{1}", "README"))).to be false
167167
end
168168
end
169169
end

spec/actions/empty_directory_spec.rb

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ def base
6666
base.inside("foo", :pretend => true) do
6767
empty_directory("ghost")
6868
end
69-
expect(File.exists?(File.join(base.destination_root, "ghost"))).to be_false
69+
expect(File.exists?(File.join(base.destination_root, "ghost"))).to be false
7070
end
7171

7272
describe "when directory exists" do
@@ -83,14 +83,14 @@ def base
8383
empty_directory("doc")
8484
invoke!
8585
revoke!
86-
expect(File.exists?(@action.destination)).to be_false
86+
expect(File.exists?(@action.destination)).to be false
8787
end
8888
end
8989

9090
describe "#exists?" do
9191
it "returns true if the destination file exists" do
9292
empty_directory("doc")
93-
expect(@action.exists?).to be_false
93+
expect(@action.exists?).to be false
9494
invoke!
9595
expect(@action.exists?).to be_true
9696
end

spec/actions/file_manipulation_spec.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -215,12 +215,12 @@ def file
215215
describe "#remove_file" do
216216
it "removes the file given" do
217217
action :remove_file, "doc/README"
218-
expect(File.exists?(file)).to be_false
218+
expect(File.exists?(file)).to be false
219219
end
220220

221221
it "removes directories too" do
222222
action :remove_dir, "doc"
223-
expect(File.exists?(File.join(destination_root, "doc"))).to be_false
223+
expect(File.exists?(File.join(destination_root, "doc"))).to be false
224224
end
225225

226226
it "does not remove if pretending" do

spec/actions_spec.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -153,7 +153,7 @@ def file
153153
describe "when pretending" do
154154
it "no directories should be created" do
155155
runner.inside("bar", :pretend => true) {}
156-
expect(File.exists?("bar")).to be_false
156+
expect(File.exists?("bar")).to be false
157157
end
158158
end
159159

spec/base_spec.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ def hello
8686
end
8787

8888
it "does not create an accessor for it" do
89-
expect(BrokenCounter.start(["1", "2", "--third", "3"])[3]).to be_false
89+
expect(BrokenCounter.start(["1", "2", "--third", "3"])[3]).to be false
9090
end
9191
end
9292

spec/core_ext/hash_with_indifferent_access_spec.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,12 +17,12 @@
1717
it "handles magic boolean predicates" do
1818
expect(@hash.force?).to be_true
1919
expect(@hash.foo?).to be_true
20-
expect(@hash.nothing?).to be_false
20+
expect(@hash.nothing?).to be false
2121
end
2222

2323
it "handles magic comparisons" do
2424
expect(@hash.foo?('bar')).to be_true
25-
expect(@hash.foo?('bee')).to be_false
25+
expect(@hash.foo?('bee')).to be false
2626
end
2727

2828
it "maps methods to keys" do

spec/invocation_spec.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717

1818
it "invokes a command with arguments" do
1919
expect(A.new.invoke(:five, [5])).to be_true
20-
expect(A.new.invoke(:five, [7])).to be_false
20+
expect(A.new.invoke(:five, [7])).to be false
2121
end
2222

2323
it "invokes the default command if none is given to a Thor class" do

spec/shell/basic_spec.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ def shell
8383

8484
expect($stdout).to receive(:print).with("Should I overwrite it? ")
8585
expect($stdin).to receive(:gets).and_return('Yes')
86-
expect(shell.no?("Should I overwrite it?")).to be_false
86+
expect(shell.no?("Should I overwrite it?")).to be false
8787
end
8888
end
8989

@@ -274,7 +274,7 @@ def #456 Lanç...
274274
it "returns false if the user chooses no" do
275275
allow($stdout).to receive(:print)
276276
expect($stdin).to receive(:gets).and_return('n')
277-
expect(shell.file_collision('foo')).to be_false
277+
expect(shell.file_collision('foo')).to be false
278278
end
279279

280280
it "returns true if the user chooses yes" do

0 commit comments

Comments
 (0)