aboutsummaryrefslogtreecommitdiffstats
path: root/spec
diff options
context:
space:
mode:
authorNobuyoshi Nakada <nobu@ruby-lang.org>2019-12-20 12:19:45 +0900
committerNobuyoshi Nakada <nobu@ruby-lang.org>2019-12-20 12:19:45 +0900
commite68999c82c4863d33a6f893661fba1b7538c5671 (patch)
tree97615ccb396e864cbabbfd539251c9e64c309d91 /spec
parente672494cd737b8fea3a186aeb5c2c17d1a18cb96 (diff)
downloadruby-e68999c82c4863d33a6f893661fba1b7538c5671.tar.gz
Fixed misspellings
Fixed misspellings reported at [Bug #16437], for default gems.
Diffstat (limited to 'spec')
-rw-r--r--spec/mspec/lib/mspec/runner/formatters/specdoc.rb2
-rw-r--r--spec/mspec/lib/mspec/utils/options.rb4
-rw-r--r--spec/mspec/spec/expectations/should.rb2
-rw-r--r--spec/mspec/spec/expectations/should_spec.rb2
-rw-r--r--spec/mspec/spec/matchers/base_spec.rb4
-rw-r--r--spec/mspec/spec/matchers/complain_spec.rb2
-rw-r--r--spec/mspec/spec/runner/formatters/dotted_spec.rb2
-rw-r--r--spec/mspec/spec/utils/script_spec.rb2
8 files changed, 10 insertions, 10 deletions
diff --git a/spec/mspec/lib/mspec/runner/formatters/specdoc.rb b/spec/mspec/lib/mspec/runner/formatters/specdoc.rb
index 35092018f6..d3a5c3d729 100644
--- a/spec/mspec/lib/mspec/runner/formatters/specdoc.rb
+++ b/spec/mspec/lib/mspec/runner/formatters/specdoc.rb
@@ -24,7 +24,7 @@ class SpecdocFormatter < BaseFormatter
# the sequential number of the exception raised. If
# there has already been an exception raised while
# evaluating this example, it prints another +it+
- # block description string so that each discription
+ # block description string so that each description
# string has an associated 'ERROR' or 'FAILED'
def exception(exception)
print "\n- #{exception.it}" if exception?
diff --git a/spec/mspec/lib/mspec/utils/options.rb b/spec/mspec/lib/mspec/utils/options.rb
index af9a9b3f0e..3e3f708a2f 100644
--- a/spec/mspec/lib/mspec/utils/options.rb
+++ b/spec/mspec/lib/mspec/utils/options.rb
@@ -94,7 +94,7 @@ class MSpecOptions
@options.find { |o| o.match? opt }
end
- # Processes an option. Calles the #on_extra block (or default) for
+ # Processes an option. Calls the #on_extra block (or default) for
# unrecognized options. For registered options, possibly fetches an
# argument and invokes the option's block if it is not nil.
def process(argv, entry, opt, arg)
@@ -414,7 +414,7 @@ class MSpecOptions
end
def interrupt
- on("--int-spec", "Control-C interupts the current spec only") do
+ on("--int-spec", "Control-C interrupts the current spec only") do
config[:abort] = false
end
end
diff --git a/spec/mspec/spec/expectations/should.rb b/spec/mspec/spec/expectations/should.rb
index 24b1cf2bf8..48503b1631 100644
--- a/spec/mspec/spec/expectations/should.rb
+++ b/spec/mspec/spec/expectations/should.rb
@@ -41,7 +41,7 @@ describe "MSpec expectation method #should" do
:sym.should be_kind_of(Symbol)
end
- it "causes a failue to be recorded" do
+ it "causes a failure to be recorded" do
1.should == 2
end
diff --git a/spec/mspec/spec/expectations/should_spec.rb b/spec/mspec/spec/expectations/should_spec.rb
index 2c896f1c3b..b8bda8f86f 100644
--- a/spec/mspec/spec/expectations/should_spec.rb
+++ b/spec/mspec/spec/expectations/should_spec.rb
@@ -13,7 +13,7 @@ describe "MSpec" do
it "records failures" do
@out.should include <<-EOS
1)
-MSpec expectation method #should causes a failue to be recorded FAILED
+MSpec expectation method #should causes a failure to be recorded FAILED
Expected 1 == 2
to be truthy but was false
EOS
diff --git a/spec/mspec/spec/matchers/base_spec.rb b/spec/mspec/spec/matchers/base_spec.rb
index 4694d754f7..762822bf09 100644
--- a/spec/mspec/spec/matchers/base_spec.rb
+++ b/spec/mspec/spec/matchers/base_spec.rb
@@ -52,7 +52,7 @@ describe SpecPositiveOperatorMatcher, ">= operator" do
end
end
-describe SpecPositiveOperatorMatcher, "< operater" do
+describe SpecPositiveOperatorMatcher, "< operator" do
it "provides a failure message that 'Expected x to be less than y'" do
lambda {
SpecPositiveOperatorMatcher.new(5) < 4
@@ -64,7 +64,7 @@ describe SpecPositiveOperatorMatcher, "< operater" do
end
end
-describe SpecPositiveOperatorMatcher, "<= operater" do
+describe SpecPositiveOperatorMatcher, "<= operator" do
it "provides a failure message that 'Expected x to be less than or equal to y'" do
lambda {
SpecPositiveOperatorMatcher.new(5) <= 4
diff --git a/spec/mspec/spec/matchers/complain_spec.rb b/spec/mspec/spec/matchers/complain_spec.rb
index 83ecb70622..90f94c3684 100644
--- a/spec/mspec/spec/matchers/complain_spec.rb
+++ b/spec/mspec/spec/matchers/complain_spec.rb
@@ -8,7 +8,7 @@ describe ComplainMatcher do
ComplainMatcher.new(nil).matches?(proc).should == true
end
- it "maches when executing the proc results in the expected output to $stderr" do
+ it "matches when executing the proc results in the expected output to $stderr" do
proc = lambda { warn "Que haces?" }
ComplainMatcher.new("Que haces?\n").matches?(proc).should == true
ComplainMatcher.new("Que pasa?\n").matches?(proc).should == false
diff --git a/spec/mspec/spec/runner/formatters/dotted_spec.rb b/spec/mspec/spec/runner/formatters/dotted_spec.rb
index 1e9b06f6e1..5af2ff55f8 100644
--- a/spec/mspec/spec/runner/formatters/dotted_spec.rb
+++ b/spec/mspec/spec/runner/formatters/dotted_spec.rb
@@ -91,7 +91,7 @@ describe DottedFormatter, "#exception" do
@formatter.exception?.should be_true
end
- it "addes the exception to the list of exceptions" do
+ it "adds the exception to the list of exceptions" do
@formatter.exceptions.should == []
@formatter.exception @error
@formatter.exception @failure
diff --git a/spec/mspec/spec/utils/script_spec.rb b/spec/mspec/spec/utils/script_spec.rb
index e3188ab5ff..3cc85fa1e2 100644
--- a/spec/mspec/spec/utils/script_spec.rb
+++ b/spec/mspec/spec/utils/script_spec.rb
@@ -406,7 +406,7 @@ describe MSpecScript, "#files" do
@script = MSpecScript.new
end
- it "accumlates the values returned by #entries" do
+ it "accumulates the values returned by #entries" do
@script.should_receive(:entries).and_return(["file1"], ["file2"])
@script.files(["a", "b"]).should == ["file1", "file2"]
end