diff --git a/lib/thor/actions.rb b/lib/thor/actions.rb index d55b77b80..7e574d8bd 100644 --- a/lib/thor/actions.rb +++ b/lib/thor/actions.rb @@ -227,7 +227,7 @@ def apply(path, config={}) # ==== Parameters # command:: the command to be executed. # config:: give :verbose => false to not log the status, :capture => true to hide to output. Specify :with - # to append an executable to command executation. + # to append an executable to command execution. # # ==== Example # diff --git a/lib/thor/runner.rb b/lib/thor/runner.rb index e51ceb5ce..bef3d57bc 100644 --- a/lib/thor/runner.rb +++ b/lib/thor/runner.rb @@ -206,7 +206,7 @@ def self.exit_on_failure? # in the thor_root instead of loading them all. # # By default, it also traverses the current path until find Thor files, as - # described in thorfiles. This look up can be skipped by suppliying + # described in thorfiles. This look up can be skipped by supplying # skip_lookup true. # def initialize_thorfiles(relevant_to=nil, skip_lookup=false) diff --git a/spec/actions/create_file_spec.rb b/spec/actions/create_file_spec.rb index 2586704dd..f63fb4ff5 100644 --- a/spec/actions/create_file_spec.rb +++ b/spec/actions/create_file_spec.rb @@ -101,7 +101,7 @@ def silence! expect(invoke!).to eq(" skip doc/config.rb\n") end - it "shows conflict status to ther user" do + it "shows conflict status to the user" do expect(create_file("doc/config.rb")).not_to be_identical $stdin.should_receive(:gets).and_return('s') file = File.join(destination_root, 'doc/config.rb') diff --git a/spec/actions/file_manipulation_spec.rb b/spec/actions/file_manipulation_spec.rb index c4d571c4b..27f8775f9 100644 --- a/spec/actions/file_manipulation_spec.rb +++ b/spec/actions/file_manipulation_spec.rb @@ -177,7 +177,7 @@ def file expect(File.exists?(file)).to be_true end - it "converts enconded instructions" do + it "converts encoded instructions" do runner.should_receive(:file_name).and_return("rdoc") action :template, "doc/%file_name%.rb.tt" file = File.join(destination_root, "doc/rdoc.rb") diff --git a/spec/actions/inject_into_file_spec.rb b/spec/actions/inject_into_file_spec.rb index cf577deef..8b43f1b48 100644 --- a/spec/actions/inject_into_file_spec.rb +++ b/spec/actions/inject_into_file_spec.rb @@ -113,7 +113,7 @@ def file expect(File.read(file)).to eq("another stuff\n__start__\nREADME\n__end__\n") end - it "substracts when prepending" do + it "subtracts when prepending" do invoke! "doc/README", "more content\n", :after => /\A/ invoke! "doc/README", "another stuff\n", :after => /\A/ revoke! "doc/README", "more content\n", :after => /\A/ diff --git a/spec/actions_spec.rb b/spec/actions_spec.rb index fc452c64f..f456bcc18 100644 --- a/spec/actions_spec.rb +++ b/spec/actions_spec.rb @@ -86,7 +86,7 @@ def file expect(runner.relative_to_original_destination_root('/test/file')).to eq("/test/file") end - it "does not fail with files constaining regexp characters" do + it "does not fail with files containing regexp characters" do runner = MyCounter.new([1], {}, { :destination_root => File.join(destination_root, "fo[o-b]ar") }) expect(runner.relative_to_original_destination_root("bar")).to eq("bar") end diff --git a/spec/core_ext/hash_with_indifferent_access_spec.rb b/spec/core_ext/hash_with_indifferent_access_spec.rb index 5d6695102..dfa5721cf 100644 --- a/spec/core_ext/hash_with_indifferent_access_spec.rb +++ b/spec/core_ext/hash_with_indifferent_access_spec.rb @@ -20,7 +20,7 @@ expect(@hash.nothing?).to be_false end - it "handles magic comparisions" do + it "handles magic comparisons" do expect(@hash.foo?('bar')).to be_true expect(@hash.foo?('bee')).to be_false end diff --git a/spec/runner_spec.rb b/spec/runner_spec.rb index 17fd29f83..d917cf2f3 100644 --- a/spec/runner_spec.rb +++ b/spec/runner_spec.rb @@ -69,7 +69,7 @@ def when_no_thorfiles_exist expect(Thor::Runner.start).to eq("default command") end - it "forwads arguments to the invoked command" do + it "forwards arguments to the invoked command" do ARGV.replace ["my_script:animal", "horse"] expect(Thor::Runner.start).to eq(["horse"]) end