Permalink
Browse files

Replace == with eq

  • Loading branch information...
1 parent fa8e5ff commit 47b0c5a8407b224acfbef1f43a5ce24cce14b747 @sferik committed Oct 10, 2012
Showing with 65 additions and 65 deletions.
  1. +5 −5 spec/multi_xml_spec.rb
  2. +60 −60 spec/parser_shared_example.rb
@@ -12,21 +12,21 @@ class MockDecoder; end
it "should default to the best available gem" do
pending
- MultiXml.parser.name.should be == 'MultiXml::Parsers::Rexml'
+ MultiXml.parser.name.should eq('MultiXml::Parsers::Rexml')
require 'nokogiri'
- MultiXml.parser.name.should be == 'MultiXml::Parsers::Nokogiri'
+ MultiXml.parser.name.should eq('MultiXml::Parsers::Nokogiri')
require 'libxml'
- MultiXml.parser.name.should == 'MultiXml::Parsers::Libxml'
+ MultiXml.parser.name.should eq('MultiXml::Parsers::Libxml')
end
it "should be settable via a symbol" do
MultiXml.parser = :nokogiri
- MultiXml.parser.name.should == 'MultiXml::Parsers::Nokogiri'
+ MultiXml.parser.name.should eq('MultiXml::Parsers::Nokogiri')
end
it "should be settable via a class" do
MultiXml.parser = MockDecoder
- MultiXml.parser.name.should == 'MockDecoder'
+ MultiXml.parser.name.should eq('MockDecoder')
end
end
Oops, something went wrong. Retry.

0 comments on commit 47b0c5a

Please sign in to comment.