test that rendering works
This commit is contained in:
parent
50137f9e04
commit
4d4de51c8b
12
spec/features/merged/view_spec.rb
Normal file
12
spec/features/merged/view_spec.rb
Normal 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
|
@ -1,3 +1,6 @@
|
||||
Rails.application.routes.draw do
|
||||
mount Merged::Engine => "/merged"
|
||||
|
||||
get ":id" , to: "merged/view#view" , id: :id
|
||||
|
||||
end
|
||||
|
Loading…
Reference in New Issue
Block a user