Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

fix some typos

  • Loading branch information...
commit 2dfd9da96dca56c405b0049860813366f4087a40 1 parent ca61719
@vipulnsward vipulnsward authored
View
2  lib/thor/actions.rb
@@ -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
#
View
2  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)
View
2  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')
View
2  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")
View
2  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/
View
2  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
View
2  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
View
2  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

0 comments on commit 2dfd9da

Please sign in to comment.
Something went wrong with that request. Please try again.