Skip to content

Commit

Permalink
Fixed tests.
Browse files Browse the repository at this point in the history
  • Loading branch information
apognu committed Apr 2, 2019
1 parent 0e46647 commit 6e9bf4a
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions libknox/src/util/git.rs
Original file line number Diff line number Diff line change
Expand Up @@ -137,6 +137,9 @@ mod tests {
fn commit() {
let tmp = spec::setup();
let mut context = crate::spec::get_test_vault(tmp.path()).expect("could not get vault");
context
.git_init()
.expect("could not create local git repository");

context
.write_entry("a", &Entry::default())
Expand All @@ -163,6 +166,9 @@ mod tests {
fn set_remote() {
let tmp = spec::setup();
let context = crate::spec::get_test_vault(tmp.path()).expect("could not get vault");
context
.git_init()
.expect("could not create local git repository");

let repo = Repository::open(tmp.path()).expect("could not open repository");
repo
Expand Down

0 comments on commit 6e9bf4a

Please sign in to comment.