2019-09-14 01:55:25 -04:00
|
|
|
# frozen_string_literal: true
|
|
|
|
|
|
|
|
require 'rails_helper'
|
|
|
|
|
|
|
|
module DiscoursePatrons
|
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:08:52 -04:00
|
|
|
xit 'is a subclass of AdminController' do
|
2019-09-14 01:55:25 -04:00
|
|
|
expect(DiscoursePatrons::AdminController < Admin::AdminController).to eq(true)
|
|
|
|
end
|
2019-09-15 07:44:10 -04:00
|
|
|
|
2019-09-23 03:53:05 -04:00
|
|
|
it "is ok" do
|
|
|
|
get "/patrons/admin.json"
|
|
|
|
expect(response.status).to eq(200)
|
|
|
|
end
|
2019-09-14 01:55:25 -04:00
|
|
|
end
|
|
|
|
end
|