I am building a test using rspec. I have an image tag generated automatically, but I need to run the test by comparing if the URL generated by my helper is the one I need. it is an URL from googlemaps' API.
Here is my code:
within ("data-hook.product_map") do
should have_css('img src.http://maps.google.com/maps/api/staticmap?size=338x244&maptype=roadmap&sensor=false&markers=23.129,-82.38¢er=23.129,-82.38&zoom=9')
end
The error I get when I run the test is:
Nokogiri::CSS::SyntaxError: unexpected '//' after ':'
Is there a way I can compare this string, or a way around this? Of course I need to run the tests anyway.