Skip to content

Commit

Permalink
Re-enable homepage acquisition by parsing the manifest
Browse files Browse the repository at this point in the history
  • Loading branch information
roblabla committed Oct 2, 2020
1 parent bef60bd commit e1d1e37
Show file tree
Hide file tree
Showing 3 changed files with 323 additions and 287 deletions.
15 changes: 15 additions & 0 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -956,6 +956,21 @@ impl Default for Cultures {
#[cfg(test)]
mod tests {
use super::*;
use assert_fs::TempDir;
use std::env;
use std::fs;

/// Create a simple project with the provided TOML.
pub fn setup_project(toml: &str) -> TempDir {
pub const PERSIST_VAR_NAME: &str = "CARGO_WIX_TEST_PERSIST";

let temp_dir = TempDir::new().unwrap();
fs::write(temp_dir.path().join("Cargo.toml"), toml).unwrap();
fs::create_dir(temp_dir.path().join("src")).unwrap();
fs::write(temp_dir.path().join("src").join("main.rs"), "fn main() {}").unwrap();

temp_dir.into_persistent_if(env::var(PERSIST_VAR_NAME).is_ok())
}

mod culture {
use super::*;
Expand Down
Loading

0 comments on commit e1d1e37

Please sign in to comment.