File tree Expand file tree Collapse file tree 3 files changed +3
-3
lines changed Expand file tree Collapse file tree 3 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -343,7 +343,7 @@ def commands
343
343
#
344
344
def all_commands
345
345
@all_commands ||= from_superclass ( :all_commands , Thor ::CoreExt ::OrderedHash . new )
346
- @all_commands . merge ( commands )
346
+ @all_commands . merge! ( commands )
347
347
end
348
348
alias_method :all_tasks , :all_commands
349
349
Original file line number Diff line number Diff line change @@ -228,7 +228,7 @@ def hello
228
228
229
229
describe "#remove_command" do
230
230
it "removes the command from its commands hash" do
231
- expect ( MyChildScript . commands . keys ) . not_to include ( "bar " )
231
+ expect ( MyChildScript . all_commands . keys ) . not_to include ( "name_with_dashes " )
232
232
expect ( MyChildScript . commands . keys ) . not_to include ( "boom" )
233
233
end
234
234
Original file line number Diff line number Diff line change 118
118
end
119
119
120
120
class MyChildScript < MyScript
121
- remove_command :bar
121
+ remove_command :name_with_dashes
122
122
123
123
method_options :force => :boolean , :param => :numeric
124
124
def initialize ( *args )
You can’t perform that action at this time.
0 commit comments