ensl.org/spec/controllers/about_controller_spec.rb

19 lines
470 B
Ruby
Raw Normal View History

2019-10-21 22:57:48 +00:00
require 'rails_helper'
RSpec.describe AboutController, type: :controller do
it "renders the staff template" do
get :staff
expect(response).to render_template("staff")
end
it "renders the adminpanel template" do
get :adminpanel
expect(response).to render_template("adminpanel")
end
it "renders the statistics template" do
get :statistics
expect(response).to render_template("statistics")
end
end