Fix distributor logo spec - Add a logo

This commit is contained in:
Rohan Mitchell
2014-06-05 11:38:27 +10:00
parent fc02e7857a
commit f28d9f9d9b

View File

@@ -20,6 +20,11 @@ feature "As a consumer I want to shop with a distributor", js: true do
end
it "shows a distributor with images" do
# Given the distributor has a logo
distributor.logo = File.new(Rails.root + 'app/assets/images/logo.jpg')
distributor.save!
# Then we should see the distributor and its logo
visit shop_path
page.should have_text distributor.name
find("#tab_about a").click