From e68999c82c4863d33a6f893661fba1b7538c5671 Mon Sep 17 00:00:00 2001 From: Nobuyoshi Nakada Date: Fri, 20 Dec 2019 12:19:45 +0900 Subject: Fixed misspellings Fixed misspellings reported at [Bug #16437], for default gems. --- spec/mspec/spec/expectations/should.rb | 2 +- spec/mspec/spec/expectations/should_spec.rb | 2 +- spec/mspec/spec/matchers/base_spec.rb | 4 ++-- spec/mspec/spec/matchers/complain_spec.rb | 2 +- spec/mspec/spec/runner/formatters/dotted_spec.rb | 2 +- spec/mspec/spec/utils/script_spec.rb | 2 +- 6 files changed, 7 insertions(+), 7 deletions(-) (limited to 'spec/mspec/spec') 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 -- cgit v1.2.3