Skip to content

Commit 3c42bd2

Browse files
committed
Fixes mistakes in shell/basic_spec.rb wording
1 parent f3c1a9a commit 3c42bd2

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

spec/shell/basic_spec.rb

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,7 @@ def shell
109109
shell.say_status(:create, "~/.thor/command.thor")
110110
end
111111

112-
it "always use new line" do
112+
it "always uses new line" do
113113
$stdout.should_receive(:puts).with(" create ")
114114
shell.say_status(:create, "")
115115
end
@@ -137,7 +137,7 @@ def shell
137137
shell.say_status(:created, "~/.thor/command.thor", false)
138138
end
139139

140-
it "uses padding to set messages left margin" do
140+
it "uses padding to set message's left margin" do
141141
shell.padding = 2
142142
$stdout.should_receive(:puts).with(" create ~/.thor/command.thor")
143143
shell.say_status(:create, "~/.thor/command.thor")
@@ -259,33 +259,33 @@ def #456 Lanç...
259259
shell.file_collision('foo')
260260
end
261261

262-
it "returns true if the user choose default option" do
262+
it "returns true if the user chooses default option" do
263263
$stdout.stub!(:print)
264264
$stdin.should_receive(:gets).and_return('')
265265
expect(shell.file_collision('foo')).to be_true
266266
end
267267

268-
it "returns false if the user choose no" do
268+
it "returns false if the user chooses no" do
269269
$stdout.stub!(:print)
270270
$stdin.should_receive(:gets).and_return('n')
271271
expect(shell.file_collision('foo')).to be_false
272272
end
273273

274-
it "returns true if the user choose yes" do
274+
it "returns true if the user chooses yes" do
275275
$stdout.stub!(:print)
276276
$stdin.should_receive(:gets).and_return('y')
277277
expect(shell.file_collision('foo')).to be_true
278278
end
279279

280-
it "shows help usage if the user choose help" do
280+
it "shows help usage if the user chooses help" do
281281
$stdout.stub!(:print)
282282
$stdin.should_receive(:gets).and_return('h')
283283
$stdin.should_receive(:gets).and_return('n')
284284
help = capture(:stdout) { shell.file_collision('foo') }
285285
expect(help).to match(/h \- help, show this help/)
286286
end
287287

288-
it "quits if the user choose quit" do
288+
it "quits if the user chooses quit" do
289289
$stdout.stub!(:print)
290290
$stdout.should_receive(:puts).with('Aborting...')
291291
$stdin.should_receive(:gets).and_return('q')
@@ -295,7 +295,7 @@ def #456 Lanç...
295295
}.to raise_error(SystemExit)
296296
end
297297

298-
it "always returns true if the user choose always" do
298+
it "always returns true if the user chooses always" do
299299
$stdout.should_receive(:print).with('Overwrite foo? (enter "h" for help) [Ynaqh] ')
300300
$stdin.should_receive(:gets).and_return('a')
301301

0 commit comments

Comments
 (0)