22 lines
436 B
Ruby
22 lines
436 B
Ruby
# frozen_string_literal: true
|
|
|
|
require 'rails_helper'
|
|
|
|
module DiscoursePatrons
|
|
RSpec.describe AdminController do
|
|
|
|
let(:admin) { Fabricate(:admin) }
|
|
|
|
before { sign_in(admin) }
|
|
|
|
it 'is a subclass of AdminController' do
|
|
expect(DiscoursePatrons::AdminController < ::Admin::AdminController).to eq(true)
|
|
end
|
|
|
|
it "is ok" do
|
|
get "/patrons/admin.json"
|
|
expect(response.status).to eq(200)
|
|
end
|
|
end
|
|
end
|