Tests adapted to usage of the Shrine gem

This commit is contained in:
Christoph Haas 2020-11-12 22:29:00 +01:00
parent 6a99a62ffa
commit 9e455f25eb
2 changed files with 94 additions and 0 deletions

View file

@ -0,0 +1,20 @@
require "application_system_test_case"
class BrowsesTest < ApplicationSystemTestCase
# test "visiting the index" do
# visit browses_url
#
# assert_selector "h1", text: "Browse"
# end
test "user can see home page" do
visit root_path
assert_text /This website lets you browse screenshots of [\d,]+ software packages/
end
test "user can browse packages" do
visit packages_grid_path
has_link? href: packages_grid_path(page: 2)
end
end