Permalink
Browse files

Merge pull request #586 from hsbt/fix-misspell

Fixed misspelling words.
  • Loading branch information...
2 parents 61d4866 + 16a075e commit 0e2615fca90ea277c09f2e9bf5c4eba156253d8a @rafaelfranca rafaelfranca committed Oct 23, 2017
Showing with 5 additions and 5 deletions.
  1. +1 −1 lib/thor/base.rb
  2. +1 −1 lib/thor/util.rb
  3. +1 −1 spec/fixtures/help.thor
  4. +2 −2 spec/shell/basic_spec.rb
View
@@ -113,7 +113,7 @@ def subclass_files
end
# Whenever a class inherits from Thor or Thor::Group, we should track the
- # class and the file on Thor::Base. This is the method responsable for it.
+ # class and the file on Thor::Base. This is the method responsible for it.
#
def register_klass_file(klass) #:nodoc:
file = caller[1].match(/(.*):\d+/)[1]
View
@@ -27,7 +27,7 @@ def find_by_namespace(namespace)
end
# Receives a constant and converts it to a Thor namespace. Since Thor
- # commands can be added to a sandbox, this method is also responsable for
+ # commands can be added to a sandbox, this method is also responsible for
# removing the sandbox namespace.
#
# This method should not be used in general because it's used to deal with
View
@@ -2,7 +2,7 @@ Bundler.require :development, :default
class Help < Thor
- desc :bugs, "ALL TEH BUGZ!"
+ desc :bugs, "ALL THE BUGZ!"
option "--not_help", :type => :boolean
def bugs
puts "Invoked!"
View
@@ -74,7 +74,7 @@ def shell
expect(shell.ask('What\'s your favorite Neopolitan flavor?', :limited_to => flavors)).to eq("chocolate")
end
- it "prints a message to the user with the available options and reasks the question after an incorrect repsonse" do
+ it "prints a message to the user with the available options and reasks the question after an incorrect response" do
flavors = %w(strawberry chocolate vanilla)
expect($stdout).to receive(:print).with("Your response must be one of: [strawberry, chocolate, vanilla]. Please try again.\n")
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
expect(shell.ask('What\'s your favorite Neopolitan flavor?', :default => "vanilla")).to eq("vanilla")
end
- 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
+ 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
flavors = %w(strawberry chocolate vanilla)
expect($stdout).to receive(:print).with("Your response must be one of: [strawberry, chocolate, vanilla]. Please try again.\n")
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 comments on commit 0e2615f

Please sign in to comment.