Files
fizzy/saas/test/controllers/admin/stats_controller_test.rb
T
Jorge Manrubia 3ef5e4eeef Add record to track overridden limits
Before, we were relying on just changing the cards_count in account, but this
could create problems where the system to calculate the next card number fails due
to the unique constraint.
2025-12-16 12:00:23 +01:00

24 lines
405 B
Ruby

require "test_helper"
class Admin::StatsControllerTest < ActionDispatch::IntegrationTest
test "staff can access stats" do
sign_in_as :david
untenanted do
get saas.admin_stats_path
end
assert_response :success
end
test "non-staff cannot access stats" do
sign_in_as :jz
untenanted do
get saas.admin_stats_path
end
assert_response :forbidden
end
end