Renaming site contents to site text

This commit is contained in:
Robin Ward
2014-09-24 14:45:35 -04:00
parent 84cf402482
commit bc53d48bd7
45 changed files with 349 additions and 350 deletions

View File

@ -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

View File

@ -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