Drop staff restriction in beta and staging

because it was preventing testing of signups.
This commit is contained in:
Mike Dalessio
2025-12-12 14:46:48 -05:00
parent 029227af0a
commit 9cff236f66
2 changed files with 0 additions and 39 deletions
@@ -1,34 +0,0 @@
require "test_helper"
class NonProductionRemoteAccessTest < ActionDispatch::IntegrationTest
test "staff can access in staging environment" do
sign_in_as :david
Rails.stubs(:env).returns(ActiveSupport::EnvironmentInquirer.new("staging"))
get cards_path
assert_response :success
end
test "non-staff cannot access in staging environment" do
sign_in_as :jz
Rails.stubs(:env).returns(ActiveSupport::EnvironmentInquirer.new("staging"))
get cards_path
assert_response :forbidden
end
test "non-staff can access in production environment" do
sign_in_as :jz
Rails.stubs(:env).returns(ActiveSupport::EnvironmentInquirer.new("production"))
get cards_path
assert_response :success
end
test "non-staff can access in local environment" do
sign_in_as :jz
get cards_path
assert_response :success
end
end