Add billing system with Stripe

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Jason Zimdars <jz@37signals.com>
This commit is contained in:
Jorge Manrubia
2025-12-10 16:08:38 +01:00
parent 76400765c1
commit ee80b87c8c
18 changed files with 86 additions and 197 deletions
@@ -1,23 +0,0 @@
require "test_helper"
class Admin::StatsControllerTest < ActionDispatch::IntegrationTest
test "staff can access stats" do
sign_in_as :david
untenanted do
get admin_stats_url
end
assert_response :success
end
test "non-staff cannot access stats" do
sign_in_as :jz
untenanted do
get admin_stats_url
end
assert_response :forbidden
end
end
+6
View File
@@ -21,3 +21,9 @@ private_kevin:
account: 37s_uuid
board: private_uuid
user: kevin_uuid
miltons_wish_list_mike:
id: <%= ActiveRecord::FixtureSet.identify("miltons_wish_list_mike", :uuid) %>
account: initech_uuid
board: miltons_wish_list_uuid
user: mike_uuid
+11
View File
@@ -79,3 +79,14 @@ paycheck:
status: published
last_active_at: <%= 1.week.ago %>
account: initech_uuid
unfinished_thoughts:
id: <%= ActiveRecord::FixtureSet.identify("unfinished_thoughts", :uuid) %>
number: 3
board: miltons_wish_list_uuid
creator: mike_uuid
title: Some unfinished thoughts
created_at: <%= 1.week.ago %>
status: drafted
last_active_at: <%= 1.week.ago %>
account: initech_uuid
+1 -1
View File
@@ -81,7 +81,7 @@ class CardTest < ActiveSupport::TestCase
test "open" do
assert_equal cards(:logo, :layout, :text, :buy_domain).to_set, accounts("37s").cards.open.to_set
assert_equal cards(:radio, :paycheck).to_set, accounts("initech").cards.open.to_set
assert_equal cards(:radio, :paycheck, :unfinished_thoughts).to_set, accounts("initech").cards.open.to_set
end
test "card_unassigned" do