mirror of
https://github.com/maybe-finance/maybe.git
synced 2025-08-04 21:15:19 +02:00
New onboarding, trials, Stripe integration (#2185)
* New onboarding, trials, Stripe integration * Fix tests * Lint fixes * Fix subscription endpoints
This commit is contained in:
parent
79b4a3769b
commit
a51c4d2cba
53 changed files with 847 additions and 372 deletions
|
@ -8,7 +8,6 @@ class SubscriptionsControllerTest < ActionDispatch::IntegrationTest
|
|||
test "redirects to settings if self hosting" do
|
||||
Rails.application.config.app_mode.stubs(:self_hosted?).returns(true)
|
||||
get subscription_path
|
||||
assert_redirected_to root_path
|
||||
assert_equal I18n.t("subscriptions.self_hosted_alert"), flash[:alert]
|
||||
assert_response :forbidden
|
||||
end
|
||||
end
|
||||
|
|
7
test/jobs/stripe_event_handler_job_test.rb
Normal file
7
test/jobs/stripe_event_handler_job_test.rb
Normal file
|
@ -0,0 +1,7 @@
|
|||
require "test_helper"
|
||||
|
||||
class StripeEventHandlerJobTest < ActiveJob::TestCase
|
||||
# test "the truth" do
|
||||
# assert true
|
||||
# end
|
||||
end
|
|
@ -0,0 +1,7 @@
|
|||
require "test_helper"
|
||||
|
||||
class Provider::Stripe::CustomerEventProcessorTest < ActiveSupport::TestCase
|
||||
# test "process" do
|
||||
|
||||
# end
|
||||
end
|
|
@ -0,0 +1,6 @@
|
|||
require "test_helper"
|
||||
|
||||
class Provider::Stripe::SubscriptionEventProcessorTest < ActiveSupport::TestCase
|
||||
# test "process" do
|
||||
# end
|
||||
end
|
|
@ -55,7 +55,6 @@ class TradesTest < ApplicationSystemTestCase
|
|||
end
|
||||
|
||||
private
|
||||
|
||||
def open_new_trade_modal
|
||||
click_on "New transaction"
|
||||
end
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue