Skip to content

Commit

Permalink
Renaming
Browse files Browse the repository at this point in the history
  • Loading branch information
MissingNO57 committed Jun 13, 2024
1 parent 1d398e9 commit ffdd971
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/access_control/role.rs
Original file line number Diff line number Diff line change
Expand Up @@ -245,7 +245,7 @@ mod tests {
}

#[test]
fn test_remove_role() {
fn test_take_role() {
let creator = Addr::unchecked("owner".to_string());
let user = Addr::unchecked("user".to_string());
let role = TestRole::RoleA;
Expand All @@ -262,7 +262,7 @@ mod tests {
// Ensure the user has the role
assert!(AccessControl::has_role(deps.as_mut().storage, &role, &user));

// Admin should be able to remove role
// Admin should be able to take role
assert!(AccessControl::take_role(&mut deps.as_mut(), &env, &creator, &role, &user).is_ok());

// Ensure the user no longer has the role
Expand Down

0 comments on commit ffdd971

Please sign in to comment.