page.assert_no_selector "div[data-persistent-state='#{oldstate}']"
end
- ['/collections', '/users/welcome'].each do |path|
+ ['/collections'].each do |path|
test "Flip persistent switch at #{path}" do
Capybara.current_driver = Capybara.javascript_driver
uuid = api_fixture('collections')['foo_file']['uuid']
assert_equal(['foo'], hrefs.compact.sort,
"download page did provide strictly file links")
end
+
+ test "can view empty collection" do
+ uuid = 'd41d8cd98f00b204e9800998ecf8427e+0'
+ visit page_with_token('active', "/collections/#{uuid}")
+ assert page.has_text?('This collection is empty')
+ end
end