Commit dce64da
committed
Add basic spec coverage for User#admin?
Strictly speaking this doesn't test that the current implementation
returns `true` if the user has the "editor-admin" role for *any*
organisation. However, that's already a bit of a bodge until we decide
whether we want to properly support non-organisation-specific roles, so
I think this is fine for now.1 parent 94d3aef commit dce64da
1 file changed
+6
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
211 | 211 | | |
212 | 212 | | |
213 | 213 | | |
| 214 | + | |
| 215 | + | |
| 216 | + | |
| 217 | + | |
| 218 | + | |
| 219 | + | |
214 | 220 | | |
215 | 221 | | |
216 | 222 | | |
| |||
0 commit comments