Skip to content
Prev Previous commit
Merge branch 'rbac-migration' into sig-bouncer-role
  • Loading branch information
nventuro committed Sep 6, 2018
commit aa8fcdca286411bc6eee15b9e64baf6e7ceff8c2
11 changes: 11 additions & 0 deletions test/access/rbac/CapperRole.test.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
const { shouldBehaveLikePublicRole } = require('../../access/roles/PublicRole.behavior');
const CapperRoleMock = artifacts.require('CapperRoleMock');

contract('CapperRole', function ([_, capper, otherCapper, ...otherAccounts]) {
beforeEach(async function () {
this.contract = await CapperRoleMock.new({ from: capper });
await this.contract.addCapper(otherCapper, { from: capper });
});

shouldBehaveLikePublicRole(capper, otherCapper, otherAccounts, 'capper');
});
You are viewing a condensed version of this merge commit. You can view the full changes here.