Initialize Process literal fixture with its source workspace
This commit is contained in:
@@ -68,8 +68,12 @@ fn native() -> App {
|
||||
let owner = alias(document.project(), "assessment");
|
||||
let mut app = open_project(document.project().clone(), owner);
|
||||
app.document = document;
|
||||
// Replace the generated split workspace just as open_source_project does.
|
||||
// sync preserves discovered files and is not a new-document initializer.
|
||||
app.source_workspace = Workspace::new(app.document.bundle(), true);
|
||||
app.sync();
|
||||
app.reconcile_multiselect();
|
||||
assert_eq!(app.source_workspace.bundle(), native_bundle(BASELINE));
|
||||
app
|
||||
}
|
||||
fn alias(project: &Project, name: &str) -> Id {
|
||||
|
||||
Reference in New Issue
Block a user