diff options
author | Benoit Daloze <eregontp@gmail.com> | 2019-09-29 16:03:47 +0200 |
---|---|---|
committer | Benoit Daloze <eregontp@gmail.com> | 2019-09-29 16:03:47 +0200 |
commit | 31bb66a19df26409c9d47afcf37919c9a065516a (patch) | |
tree | 21d3d4171acbf2780b92c23833fe3727900de7c4 /spec/mspec/spec/matchers/equal_element_spec.rb | |
parent | a27dc83113afa9831dcdf919138666b09a73ccf6 (diff) |
Update to ruby/mspec@8106083
Diffstat (limited to 'spec/mspec/spec/matchers/equal_element_spec.rb')
-rw-r--r-- | spec/mspec/spec/matchers/equal_element_spec.rb | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/spec/mspec/spec/matchers/equal_element_spec.rb b/spec/mspec/spec/matchers/equal_element_spec.rb index 45b8390364..06fae762c4 100644 --- a/spec/mspec/spec/matchers/equal_element_spec.rb +++ b/spec/mspec/spec/matchers/equal_element_spec.rb @@ -48,28 +48,28 @@ describe EqualElementMatcher do it "provides a useful failure message" do equal_element = EqualElementMatcher.new("A", {}, "Test") equal_element.matches?('<A></A>').should be_false - equal_element.failure_message.should == [%{Expected "<A></A>"\n}, %{to be a 'A' element with no attributes and "Test" as content}] + equal_element.failure_message.should == [%{Expected "<A></A>"}, %{to be a 'A' element with no attributes and "Test" as content}] equal_element = EqualElementMatcher.new("A", {}, "") equal_element.matches?('<A>Test</A>').should be_false - equal_element.failure_message.should == [%{Expected "<A>Test</A>"\n}, %{to be a 'A' element with no attributes and no content}] + equal_element.failure_message.should == [%{Expected "<A>Test</A>"}, %{to be a 'A' element with no attributes and no content}] equal_element = EqualElementMatcher.new("A", "HREF" => "http://www.example.com") equal_element.matches?('<A>Test</A>').should be_false - equal_element.failure_message.should == [%{Expected "<A>Test</A>"\n}, %{to be a 'A' element with HREF="http://www.example.com" and any content}] + equal_element.failure_message.should == [%{Expected "<A>Test</A>"}, %{to be a 'A' element with HREF="http://www.example.com" and any content}] end it "provides a useful negative failure message" do equal_element = EqualElementMatcher.new("A", {}, "Test") equal_element.matches?('<A></A>').should be_false - equal_element.negative_failure_message.should == [%{Expected "<A></A>"\n}, %{not to be a 'A' element with no attributes and "Test" as content}] + equal_element.negative_failure_message.should == [%{Expected "<A></A>"}, %{not to be a 'A' element with no attributes and "Test" as content}] equal_element = EqualElementMatcher.new("A", {}, "") equal_element.matches?('<A>Test</A>').should be_false - equal_element.negative_failure_message.should == [%{Expected "<A>Test</A>"\n}, %{not to be a 'A' element with no attributes and no content}] + equal_element.negative_failure_message.should == [%{Expected "<A>Test</A>"}, %{not to be a 'A' element with no attributes and no content}] equal_element = EqualElementMatcher.new("A", "HREF" => "http://www.example.com") equal_element.matches?('<A>Test</A>').should be_false - equal_element.negative_failure_message.should == [%{Expected "<A>Test</A>"\n}, %{not to be a 'A' element with HREF="http://www.example.com" and any content}] + equal_element.negative_failure_message.should == [%{Expected "<A>Test</A>"}, %{not to be a 'A' element with HREF="http://www.example.com" and any content}] end end |