@@ -44,11 +44,11 @@ class Account::DataTransfer::ActionText::RichTextRecordSetTest < ActiveSupport::
4444 end
4545
4646 test "transform_body_for_import skips GIDs belonging to another account" do
47- victim_tag = tags ( :web )
47+ victim_user = users ( :david )
4848 attacker_account = accounts ( :initech )
49- assert_not_equal attacker_account . id , victim_tag . account_id
49+ assert_not_equal attacker_account . id , victim_user . account_id
5050
51- cross_tenant_gid = victim_tag . to_global_id . to_s
51+ cross_tenant_gid = victim_user . to_global_id . to_s
5252 html = %(<action-text-attachment gid="#{ cross_tenant_gid } "></action-text-attachment>)
5353
5454 record_set = Account ::DataTransfer ::ActionText ::RichTextRecordSet . new ( attacker_account )
@@ -59,11 +59,11 @@ class Account::DataTransfer::ActionText::RichTextRecordSetTest < ActiveSupport::
5959 end
6060
6161 test "transform_body_for_import converts GIDs belonging to the same account" do
62- own_tag = tags ( :web )
62+ own_user = users ( :david )
6363 own_account = accounts ( :"37s" )
64- assert_equal own_account . id , own_tag . account_id
64+ assert_equal own_account . id , own_user . account_id
6565
66- same_account_gid = own_tag . to_global_id . to_s
66+ same_account_gid = own_user . to_global_id . to_s
6767 html = %(<action-text-attachment gid="#{ same_account_gid } "></action-text-attachment>)
6868
6969 record_set = Account ::DataTransfer ::ActionText ::RichTextRecordSet . new ( own_account )
@@ -74,7 +74,7 @@ class Account::DataTransfer::ActionText::RichTextRecordSetTest < ActiveSupport::
7474 end
7575
7676 test "transform_body_for_import handles non-existent record GIDs gracefully" do
77- nonexistent_gid = "gid://fizzy/Tag /00000000000000000000000000"
77+ nonexistent_gid = "gid://fizzy/User /00000000000000000000000000"
7878 html = %(<action-text-attachment gid="#{ nonexistent_gid } "></action-text-attachment>)
7979
8080 record_set = Account ::DataTransfer ::ActionText ::RichTextRecordSet . new ( accounts ( :"37s" ) )
0 commit comments