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:
@@ -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
|
||||
Vendored
+6
@@ -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
|
||||
|
||||
Vendored
+11
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user