Skip to content

Commit

Permalink
fix some typos
Browse files Browse the repository at this point in the history
  • Loading branch information
vipulnsward committed Apr 3, 2013
1 parent ca61719 commit 2dfd9da
Show file tree
Hide file tree
Showing 8 changed files with 8 additions and 8 deletions.
2 changes: 1 addition & 1 deletion lib/thor/actions.rb
Expand Up @@ -227,7 +227,7 @@ def apply(path, config={})
# ==== Parameters
# command<String>:: the command to be executed.
# config<Hash>:: 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
#
Expand Down
2 changes: 1 addition & 1 deletion lib/thor/runner.rb
Expand Up @@ -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)
Expand Down
2 changes: 1 addition & 1 deletion spec/actions/create_file_spec.rb
Expand Up @@ -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')
Expand Down
2 changes: 1 addition & 1 deletion spec/actions/file_manipulation_spec.rb
Expand Up @@ -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")
Expand Down
2 changes: 1 addition & 1 deletion spec/actions/inject_into_file_spec.rb
Expand Up @@ -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/
Expand Down
2 changes: 1 addition & 1 deletion spec/actions_spec.rb
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion spec/core_ext/hash_with_indifferent_access_spec.rb
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion spec/runner_spec.rb
Expand Up @@ -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
Expand Down

0 comments on commit 2dfd9da

Please sign in to comment.