2024-10-08 14:37:47 -05:00
|
|
|
require "test_helper"
|
|
|
|
|
|
|
|
|
|
class SubscriptionsControllerTest < ActionDispatch::IntegrationTest
|
2025-02-28 15:35:00 +01:00
|
|
|
setup do
|
|
|
|
|
sign_in @user = users(:family_admin)
|
|
|
|
|
end
|
|
|
|
|
|
|
|
|
|
test "redirects to settings if self hosting" do
|
|
|
|
|
Rails.application.config.app_mode.stubs(:self_hosted?).returns(true)
|
|
|
|
|
get subscription_path
|
2025-05-01 16:47:14 -04:00
|
|
|
assert_response :forbidden
|
2025-02-28 15:35:00 +01:00
|
|
|
end
|
2024-10-08 14:37:47 -05:00
|
|
|
end
|