Tests adapted to usage of the Shrine gem
This commit is contained in:
parent
6a99a62ffa
commit
9e455f25eb
2 changed files with 94 additions and 0 deletions
20
test/system/browses_test.rb
Normal file
20
test/system/browses_test.rb
Normal 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
|
||||
Loading…
Add table
Add a link
Reference in a new issue