[rspec-users] rspec-rails img src and timestamps
amkirwan at gmail.com
Thu Jun 4 18:40:38 EDT 2009
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?
More information about the rspec-users