After upgrading to sprockets-rails version 3.0 from version 2.3.3, the integration test below fails. It used to pass but now gives the error: Expected exactly 2 elements matching "img[src*='profile.gif']", found 0...
The test:
get user_path(@user1)
puts @response.body
assert_select "img[src*='profile.gif']", count: 2
puts @response.body confirms that the image is there twice as the body includes two times:
src="/assets/account/profile-3454be0beae***256dab6d.gif". Nevertheless the test fails.
Does anyone understand this? And how should I solve it?
Aucun commentaire:
Enregistrer un commentaire