test that rendering works

This commit is contained in:
Torsten 2022-12-17 13:10:11 +02:00
parent 50137f9e04
commit 4d4de51c8b
2 changed files with 15 additions and 0 deletions

View File

@ -0,0 +1,12 @@
require 'rails_helper'
RSpec.feature "View", type: :feature do
describe "Check rendering" do
it "returns http successfor all pages" do
Merged::Page.all.each do |page|
visit "/" + page.name
end
end
end
end

View File

@ -1,3 +1,6 @@
Rails.application.routes.draw do
mount Merged::Engine => "/merged"
get ":id" , to: "merged/view#view" , id: :id
end