@@ -109,7 +109,7 @@ def shell
109
109
shell . say_status ( :create , "~/.thor/command.thor" )
110
110
end
111
111
112
- it "always use new line" do
112
+ it "always uses new line" do
113
113
$stdout. should_receive ( :puts ) . with ( " create " )
114
114
shell . say_status ( :create , "" )
115
115
end
@@ -137,7 +137,7 @@ def shell
137
137
shell . say_status ( :created , "~/.thor/command.thor" , false )
138
138
end
139
139
140
- it "uses padding to set messages left margin" do
140
+ it "uses padding to set message's left margin" do
141
141
shell . padding = 2
142
142
$stdout. should_receive ( :puts ) . with ( " create ~/.thor/command.thor" )
143
143
shell . say_status ( :create , "~/.thor/command.thor" )
@@ -259,33 +259,33 @@ def #456 Lanç...
259
259
shell . file_collision ( 'foo' )
260
260
end
261
261
262
- it "returns true if the user choose default option" do
262
+ it "returns true if the user chooses default option" do
263
263
$stdout. stub! ( :print )
264
264
$stdin. should_receive ( :gets ) . and_return ( '' )
265
265
expect ( shell . file_collision ( 'foo' ) ) . to be_true
266
266
end
267
267
268
- it "returns false if the user choose no" do
268
+ it "returns false if the user chooses no" do
269
269
$stdout. stub! ( :print )
270
270
$stdin. should_receive ( :gets ) . and_return ( 'n' )
271
271
expect ( shell . file_collision ( 'foo' ) ) . to be_false
272
272
end
273
273
274
- it "returns true if the user choose yes" do
274
+ it "returns true if the user chooses yes" do
275
275
$stdout. stub! ( :print )
276
276
$stdin. should_receive ( :gets ) . and_return ( 'y' )
277
277
expect ( shell . file_collision ( 'foo' ) ) . to be_true
278
278
end
279
279
280
- it "shows help usage if the user choose help" do
280
+ it "shows help usage if the user chooses help" do
281
281
$stdout. stub! ( :print )
282
282
$stdin. should_receive ( :gets ) . and_return ( 'h' )
283
283
$stdin. should_receive ( :gets ) . and_return ( 'n' )
284
284
help = capture ( :stdout ) { shell . file_collision ( 'foo' ) }
285
285
expect ( help ) . to match ( /h \- help, show this help/ )
286
286
end
287
287
288
- it "quits if the user choose quit" do
288
+ it "quits if the user chooses quit" do
289
289
$stdout. stub! ( :print )
290
290
$stdout. should_receive ( :puts ) . with ( 'Aborting...' )
291
291
$stdin. should_receive ( :gets ) . and_return ( 'q' )
@@ -295,7 +295,7 @@ def #456 Lanç...
295
295
} . to raise_error ( SystemExit )
296
296
end
297
297
298
- it "always returns true if the user choose always" do
298
+ it "always returns true if the user chooses always" do
299
299
$stdout. should_receive ( :print ) . with ( 'Overwrite foo? (enter "h" for help) [Ynaqh] ' )
300
300
$stdin. should_receive ( :gets ) . and_return ( 'a' )
301
301
0 commit comments