[rspec-users] Cucumber ".should contain(expected) does but fails anyway

James Byrne lists at ruby-forum.com
Wed Apr 22 11:02:00 EDT 2009


When I change the test to:

  expected = '<title>Bank of Canada: Noon Foreign Exchange 
Rates</title>'
  fx_doc.xpath('//rdf:RDF/xmlns:channel/xmlns:title').should =~ expected

Then I see this instead:

  expected: "<title>Bank of Canada: Noon Foreign Exchange 
Rates</title>",
       got: <title>Bank of Canada: Noon Foreign Exchange Rates</title> 
(using =~)

What is adding the double quotes?
-- 
Posted via http://www.ruby-forum.com/.


More information about the rspec-users mailing list