Forum: RSpec rspec-rails img src and timestamps

Announcement (2017-05-07): is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see and for other Rails- und Ruby-related community platforms.
amkirwan (Guest)
on 2009-06-05 09:15
(Received via mailing list)
There is probably an easy solution to this but I am new to rails and
rspec and after searching I cannot seem to find an answer. When  I try
the following code:

 response.should have_selector("#logo", :src => "/images/logo.jpg")

it fails because rails appends a ? and timestamp to the end of the
image name.  If I put the full name it passes.

 response.should have_selector("#logo", :src => "/images/logo.jpg?
This topic is locked and can not be replied to.