mirror of
https://github.com/discourse/discourse.git
synced 2025-06-05 10:54:41 +08:00
Renaming site contents to site text
This commit is contained in:
@ -1,9 +1,9 @@
|
||||
require 'spec_helper'
|
||||
|
||||
describe Admin::SiteContentsController do
|
||||
describe Admin::SiteTextController do
|
||||
|
||||
it "is a subclass of AdminController" do
|
||||
(Admin::SiteContentsController < Admin::AdminController).should be_true
|
||||
(Admin::SiteTextController < Admin::AdminController).should be_true
|
||||
end
|
||||
|
||||
context 'while logged in as an admin' do
|
||||
@ -12,15 +12,15 @@ describe Admin::SiteContentsController do
|
||||
end
|
||||
|
||||
context '.show' do
|
||||
let(:content_type) { SiteContent.content_types.first.content_type }
|
||||
let(:text_type) { SiteText.text_types.first.text_type }
|
||||
|
||||
it 'returns success' do
|
||||
xhr :get, :show, id: content_type
|
||||
xhr :get, :show, id: text_type
|
||||
response.should be_success
|
||||
end
|
||||
|
||||
it 'returns JSON' do
|
||||
xhr :get, :show, id: content_type
|
||||
xhr :get, :show, id: text_type
|
||||
::JSON.parse(response.body).should be_present
|
||||
end
|
||||
end
|
@ -1,9 +1,9 @@
|
||||
require 'spec_helper'
|
||||
|
||||
describe Admin::SiteContentTypesController do
|
||||
describe Admin::SiteTextTypesController do
|
||||
|
||||
it "is a subclass of AdminController" do
|
||||
(Admin::SiteContentTypesController < Admin::AdminController).should be_true
|
||||
(Admin::SiteTextTypesController < Admin::AdminController).should be_true
|
||||
end
|
||||
|
||||
context 'while logged in as an admin' do
|
Reference in New Issue
Block a user