1. If you have " inside a string, use %() or somethn like that;
2. This really looks like overtesting. Why don't you just check that you have an image with the expected url? (nokogiri?)