feat: Initialize dungeon editor with ROM in setup for integration tests
This commit is contained in:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user