mirror of
https://github.com/maybe-finance/maybe.git
synced 2025-07-20 13:49:39 +02:00
* New onboarding, trials, Stripe integration * Fix tests * Lint fixes * Fix subscription endpoints
13 lines
340 B
Ruby
13 lines
340 B
Ruby
require "test_helper"
|
|
|
|
class SubscriptionsControllerTest < ActionDispatch::IntegrationTest
|
|
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
|
|
assert_response :forbidden
|
|
end
|
|
end
|