make base to image connectio and use image instances instead of names

This commit is contained in:
2022-12-17 13:11:20 +02:00
parent 4d4de51c8b
commit 27bf4f4269
11 changed files with 35 additions and 24 deletions

View File

@ -7,5 +7,11 @@ RSpec.feature "Images", type: :feature do
expect(page).to have_title("Dummy")
expect(page).to have_text("Pages")
end
it "has picures" do
expexted_num = Merged::Image.count
visit "/merged/images"
found= find_all(".image_box").count
expect(found).to be expexted_num
end
end
end