Files
grecia/spec/controllers/pages_controller_spec.rb
Julian Herrero 87be6f302c Add default site customization pages
From now on these static pages:

`/privacy'
`/conditions'
`/accesibility'
`/help/faq'
`/welcome'

have been moved to the DB and can be modified easily by any
administrator in `/admin/site_customization/pages'
2019-03-14 18:35:51 +01:00

48 lines
964 B
Ruby

require "rails_helper"
describe PagesController do
describe "Static pages" do
it "includes a privacy page" do
get :show, id: :privacy
expect(response).to be_ok
end
it "includes a conditions page" do
get :show, id: :conditions
expect(response).to be_ok
end
it "includes a accessibility page" do
get :show, id: :accessibility
expect(response).to be_ok
end
end
describe "More info pages" do
it "includes a more info page" do
get :show, id: "help/index"
expect(response).to be_ok
end
it "includes a how_to_use page" do
get :show, id: "help/how_to_use/index"
expect(response).to be_ok
end
it "includes a faq page" do
get :show, id: :faq
expect(response).to be_ok
end
end
describe "Not found pages" do
it "returns a 404 message" do
get :show, id: "nonExistentPage"
expect(response).to be_missing
end
end
end