2019-09-14 01:55:25 -04:00
|
|
|
# frozen_string_literal: true
|
|
|
|
|
|
|
|
require 'rails_helper'
|
|
|
|
|
2019-12-03 19:23:45 -05:00
|
|
|
module DiscourseSubscriptions
|
2019-09-23 03:53:05 -04:00
|
|
|
RSpec.describe AdminController do
|
|
|
|
|
|
|
|
let(:admin) { Fabricate(:admin) }
|
|
|
|
|
|
|
|
before { sign_in(admin) }
|
2019-09-14 01:55:25 -04:00
|
|
|
|
2019-10-09 21:31:32 -04:00
|
|
|
it 'is a subclass of AdminController' do
|
2019-12-03 19:23:45 -05:00
|
|
|
expect(DiscourseSubscriptions::AdminController < ::Admin::AdminController).to eq(true)
|
2019-09-14 01:55:25 -04:00
|
|
|
end
|
2019-09-15 07:44:10 -04:00
|
|
|
|
2019-09-23 03:53:05 -04:00
|
|
|
it "is ok" do
|
2019-12-02 19:48:12 -05:00
|
|
|
get "/s/admin.json"
|
2019-09-23 03:53:05 -04:00
|
|
|
expect(response.status).to eq(200)
|
|
|
|
end
|
2019-09-14 01:55:25 -04:00
|
|
|
end
|
|
|
|
end
|