removes controller spec deprecation warnings
This commit is contained in:
@@ -4,17 +4,17 @@ describe PagesController do
|
||||
|
||||
describe "Static pages" do
|
||||
it "includes a privacy page" do
|
||||
get :show, id: :privacy
|
||||
get :show, params: { id: :privacy }
|
||||
expect(response).to be_ok
|
||||
end
|
||||
|
||||
it "includes a conditions page" do
|
||||
get :show, id: :conditions
|
||||
get :show, params: { id: :conditions }
|
||||
expect(response).to be_ok
|
||||
end
|
||||
|
||||
it "includes a accessibility page" do
|
||||
get :show, id: :accessibility
|
||||
get :show, params: { id: :accessibility }
|
||||
expect(response).to be_ok
|
||||
end
|
||||
end
|
||||
@@ -22,24 +22,24 @@ describe PagesController do
|
||||
describe "More info pages" do
|
||||
|
||||
it "includes a more info page" do
|
||||
get :show, id: "help/index"
|
||||
get :show, params: { 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"
|
||||
get :show, params: { id: "help/how_to_use/index" }
|
||||
expect(response).to be_ok
|
||||
end
|
||||
|
||||
it "includes a faq page" do
|
||||
get :show, id: :faq
|
||||
get :show, params: { id: :faq }
|
||||
expect(response).to be_ok
|
||||
end
|
||||
end
|
||||
|
||||
describe "Not found pages" do
|
||||
it "returns a 404 message" do
|
||||
get :show, id: "nonExistentPage"
|
||||
get :show, params: { id: "nonExistentPage" }
|
||||
expect(response).to be_missing
|
||||
end
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user