ADD 后台系统配置管理功能

This commit is contained in:
jasder
2021-09-10 15:29:08 +08:00
parent 36adfcf016
commit 4c41d50506
35 changed files with 505 additions and 105 deletions

View File

@@ -0,0 +1,47 @@
require 'rails_helper'
RSpec.describe Admins::EduSettingsController, type: :controller do
describe "GET #index" do
it "returns http success" do
get :index
expect(response).to have_http_status(:success)
end
end
describe "GET #new" do
it "returns http success" do
get :new
expect(response).to have_http_status(:success)
end
end
describe "GET #update" do
it "returns http success" do
get :update
expect(response).to have_http_status(:success)
end
end
describe "GET #edit" do
it "returns http success" do
get :edit
expect(response).to have_http_status(:success)
end
end
describe "GET #create" do
it "returns http success" do
get :create
expect(response).to have_http_status(:success)
end
end
describe "GET #destroy" do
it "returns http success" do
get :destroy
expect(response).to have_http_status(:success)
end
end
end

View File

@@ -0,0 +1,5 @@
require 'rails_helper'
RSpec.describe Admins::SitesController, type: :controller do
end