discourse-subscriptions/spec/requests/admin_controller_spec.rb

22 lines
436 B
Ruby
Raw Normal View History

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:31:32 -04:00
it 'is a subclass of AdminController' do
expect(DiscoursePatrons::AdminController < ::Admin::AdminController).to eq(true)
2019-09-14 01:55:25 -04:00
end
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