forked from quag/iospec2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Jonathan Wright
committed
Jan 6, 2008
1 parent
f59ab9e
commit 81fd561
Showing
2 changed files
with
26 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,18 @@ | ||
describe(webUser, WebUser, | ||
setup( | ||
user := WebUser clone | ||
) | ||
|
||
teardown( | ||
user = nil | ||
) | ||
|
||
webUser("should be in any roles assigned to it", | ||
user := WebUser clone | ||
user assignRole("assigned role") | ||
user verify(inRole("assigned role")) | ||
) | ||
|
||
webUser("should NOT be in any roles not assigned to it", | ||
user := WebUser clone | ||
user verify(inRole("assigned role") not) | ||
) | ||
) |