More rebranding changes (#159)

* Replace Maybe for Sure in select code areas

* Make sure passwords are consistent

* Remove (admin|member) from demo data first name

* Database and schema names finally to `sure`

* Fix broken test

* Another (benchmarking) database name to `sure_*`

* More rebranding to Sure

* Missed this Maybe mention in the same page

* Random nitpicks and more Maybes

* Demo data accounts and more Maybes

* Test data account updates

* Impersonation test accounts

* Consistency with `compose.example.yml`
This commit is contained in:
Juan José Mata
2025-09-24 00:19:51 +02:00
committed by GitHub
parent 7245dd79a2
commit 5706280dd7
60 changed files with 116 additions and 116 deletions

View File

@@ -29,7 +29,7 @@ class FamilyExportTest < ActiveSupport::TestCase
test "filename is generated correctly" do
travel_to Time.zone.local(2024, 1, 15, 14, 30, 0) do
export = @family.family_exports.create!
expected_filename = "maybe_export_20240115_143000.zip"
expected_filename = "sure_export_20240115_143000.zip"
assert_equal expected_filename, export.filename
end
end

View File

@@ -9,13 +9,13 @@ class ImpersonationSessionTest < ActiveSupport::TestCase
assert_raises(ActiveRecord::RecordInvalid) do
ImpersonationSession.create!(
impersonator: regular_user,
impersonated: users(:maybe_support_staff)
impersonated: users(:sure_support_staff)
)
end
end
test "super admin cannot be impersonated" do
super_admin = users(:maybe_support_staff)
super_admin = users(:sure_support_staff)
assert super_admin.super_admin?
@@ -28,7 +28,7 @@ class ImpersonationSessionTest < ActiveSupport::TestCase
end
test "impersonation session must have different impersonator and impersonated" do
super_admin = users(:maybe_support_staff)
super_admin = users(:sure_support_staff)
assert_raises(ActiveRecord::RecordInvalid) do
ImpersonationSession.create!(

View File

@@ -106,7 +106,7 @@ class UserTest < ActiveSupport::TestCase
user = users(:family_member)
user.setup_mfa!
totp = ROTP::TOTP.new(user.otp_secret, issuer: "Maybe")
totp = ROTP::TOTP.new(user.otp_secret, issuer: "Sure Finances")
valid_code = totp.now
assert user.verify_otp?(valid_code)
@@ -136,7 +136,7 @@ class UserTest < ActiveSupport::TestCase
assert_match %r{otpauth://totp/}, user.provisioning_uri
assert_match %r{secret=#{user.otp_secret}}, user.provisioning_uri
assert_match %r{issuer=Maybe}, user.provisioning_uri
assert_match %r{issuer=Sure}, user.provisioning_uri
end
test "ai_available? returns true when openai access token set in settings" do