merged/test/integration/view_test.rb

13 lines
293 B
Ruby
Raw Normal View History

2022-12-23 14:21:51 +01:00
require "test_helper"
class ViewTest < ActionDispatch::IntegrationTest
include Devise::Test::IntegrationHelpers # Rails >= 5
def test_returns_ok_all_pages
Merged::Page.all.each do |page|
visit "/" + page.name
2022-12-23 14:25:53 +01:00
assert_equal "/#{page.name}" , current_path
2022-12-23 14:21:51 +01:00
end
end
end