Skip to content

Commit 16a075e

Browse files
committed
Fixed misspelling words.
1 parent 61d4866 commit 16a075e

File tree

4 files changed

+5
-5
lines changed

4 files changed

+5
-5
lines changed

lib/thor/base.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -113,7 +113,7 @@ def subclass_files
113113
end
114114

115115
# Whenever a class inherits from Thor or Thor::Group, we should track the
116-
# class and the file on Thor::Base. This is the method responsable for it.
116+
# class and the file on Thor::Base. This is the method responsible for it.
117117
#
118118
def register_klass_file(klass) #:nodoc:
119119
file = caller[1].match(/(.*):\d+/)[1]

lib/thor/util.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ def find_by_namespace(namespace)
2727
end
2828

2929
# Receives a constant and converts it to a Thor namespace. Since Thor
30-
# commands can be added to a sandbox, this method is also responsable for
30+
# commands can be added to a sandbox, this method is also responsible for
3131
# removing the sandbox namespace.
3232
#
3333
# This method should not be used in general because it's used to deal with

spec/fixtures/help.thor

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ Bundler.require :development, :default
22

33
class Help < Thor
44

5-
desc :bugs, "ALL TEH BUGZ!"
5+
desc :bugs, "ALL THE BUGZ!"
66
option "--not_help", :type => :boolean
77
def bugs
88
puts "Invoked!"

spec/shell/basic_spec.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ def shell
7474
expect(shell.ask('What\'s your favorite Neopolitan flavor?', :limited_to => flavors)).to eq("chocolate")
7575
end
7676

77-
it "prints a message to the user with the available options and reasks the question after an incorrect repsonse" do
77+
it "prints a message to the user with the available options and reasks the question after an incorrect response" do
7878
flavors = %w(strawberry chocolate vanilla)
7979
expect($stdout).to receive(:print).with("Your response must be one of: [strawberry, chocolate, vanilla]. Please try again.\n")
8080
expect(Thor::LineEditor).to receive(:readline).with('What\'s your favorite Neopolitan flavor? [strawberry, chocolate, vanilla] ', :limited_to => flavors).and_return("moose tracks", "chocolate")
@@ -86,7 +86,7 @@ def shell
8686
expect(shell.ask('What\'s your favorite Neopolitan flavor?', :default => "vanilla")).to eq("vanilla")
8787
end
8888

89-
it "prints a message to the user with the available options and reasks the question after an incorrect repsonse and then returns the default" do
89+
it "prints a message to the user with the available options and reasks the question after an incorrect response and then returns the default" do
9090
flavors = %w(strawberry chocolate vanilla)
9191
expect($stdout).to receive(:print).with("Your response must be one of: [strawberry, chocolate, vanilla]. Please try again.\n")
9292
expect(Thor::LineEditor).to receive(:readline).with('What\'s your favorite Neopolitan flavor? [strawberry, chocolate, vanilla] (vanilla) ', :default => "vanilla", :limited_to => flavors).and_return("moose tracks", "")

0 commit comments

Comments
 (0)