Update spec looking for matching img src

This commit is contained in:
Rob Harrington
2016-05-11 11:39:54 +10:00
parent efaf728737
commit 6bfe1be045

View File

@@ -29,7 +29,7 @@ feature "As a consumer I want to shop with a distributor", js: true do
visit shop_path
page.should have_text distributor.name
find("#tab_about a").click
first("distributor img")['src'].should == distributor.logo.url(:thumb)
first("distributor img")['src'].should include distributor.logo.url(:thumb)
end
it "shows the producers for a distributor" do