Permalink
Browse files

30DaysOfTests: cant add password with same app name twice

  • Loading branch information...
conradkdotcom committed Aug 16, 2017
1 parent 918fe7c commit b49fba9dbaa9c2642847e1051617cd501e4c46f3
Showing with 3 additions and 0 deletions.
  1. +3 −0 src/password/v2.rs
View
@@ -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.