48 lines
976 B
Ruby
48 lines
976 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: "help/faq/index"
|
|
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
|