Skip to content

Commit

Permalink
30DaysOfTests: cant add password with same app name twice
Browse files Browse the repository at this point in the history
  • Loading branch information
conradkleinespel committed Aug 16, 2017
1 parent 918fe7c commit b49fba9
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/password/v2.rs
Expand Up @@ -546,5 +546,8 @@ mod test {
assert_eq!(p.password, "password".into());
assert_eq!(p.updated_at, p.created_at);
}

// cant add two passwords with same app name
assert!(store.add_password(Password::new("name".into(), "username".into(), "password".into())).is_err());
}
}

0 comments on commit b49fba9

Please sign in to comment.