fix: asset paths cannot contain spaces in test fixture
The anonymisation pass replaced a pack name with a phrase containing spaces, and the scanner splits package paths on whitespace, so the expectation became /Game/a. Uses a single-token folder name instead. Co-Authored-By: Claude Code <noreply@anthropic.com>
This commit is contained in:
@@ -37,16 +37,16 @@ void IndirectReferenceScannerSpec::Define()
|
||||
}
|
||||
});
|
||||
|
||||
It("finds the GameInstance from a purchased UI pack", [this]()
|
||||
It("finds the GameInstance from a purchased pack", [this]()
|
||||
{
|
||||
const TArray<FString> Found = Extract(
|
||||
TEXT("GameInstanceClass=/Game/a purchased UI pack/Blueprints/GameFramework/BP_MenuGameInstance.BP_MenuGameInstance_C"));
|
||||
TEXT("GameInstanceClass=/Game/UIPack/Blueprints/GameFramework/BP_MenuGameInstance.BP_MenuGameInstance_C"));
|
||||
|
||||
TestEqual(TEXT("one hit"), Found.Num(), 1);
|
||||
if (Found.Num() == 1)
|
||||
{
|
||||
TestEqual(TEXT("package"), Found[0],
|
||||
FString(TEXT("/Game/a purchased UI pack/Blueprints/GameFramework/BP_MenuGameInstance")));
|
||||
FString(TEXT("/Game/UIPack/Blueprints/GameFramework/BP_MenuGameInstance")));
|
||||
}
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user