discourse-subscriptions/spec/requests/admin_controller_spec.rb
spirobel fcc414dbbe DEV: fix backend tests
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.
2024-04-23 16:24:34 -06:00

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