feat: Initialize dungeon editor with ROM in setup for integration tests

This commit is contained in:
scawful
2025-10-04 14:17:38 -04:00
parent 640e0a78f2
commit 78c6041877
2 changed files with 30 additions and 17 deletions

View File

@@ -28,8 +28,9 @@ class DungeonEditorIntegrationTest : public ::testing::Test {
status = rom_->LoadFromFile("zelda3.sfc");
}
ASSERT_TRUE(status.ok()) << "Could not load zelda3.sfc from any location";
dungeon_editor_ = std::make_unique<editor::DungeonEditor>();
dungeon_editor_->set_rom(rom_.get());
// Pass ROM to constructor so all components are initialized with it
dungeon_editor_ = std::make_unique<editor::DungeonEditor>(rom_.get());
}
void TearDown() override {