mirror of
https://github.com/discourse/discourse-subscriptions.git
synced 2025-08-02 11:03:27 +00:00
After the engine url got moved to /subscriptions, the tests had to be adapted. The subscribe controller does not return products anymore after moving to the stripe pricing table, so the respective tests were removed.
22 lines
485 B
Ruby
22 lines
485 B
Ruby
# frozen_string_literal: true
|
|
|
|
require "rails_helper"
|
|
|
|
RSpec.describe DiscourseSubscriptions::AdminController do
|
|
let(:admin) { Fabricate(:admin) }
|
|
|
|
before do
|
|
sign_in(admin)
|
|
SiteSetting.discourse_subscriptions_enabled = true
|
|
end
|
|
|
|
it "is a subclass of AdminController" do
|
|
expect(DiscourseSubscriptions::AdminController < ::Admin::AdminController).to eq(true)
|
|
end
|
|
|
|
it "is ok" do
|
|
get "/subscriptions/admin.json"
|
|
expect(response.status).to eq(200)
|
|
end
|
|
end
|