Update modifiers to call public view functions (#1277)

* Update modifiers to call public view functions.

Fixes #1179.

* remove isMinter

* fix is owner call

* fix isOpen

* Remove unnecessary solium disable
This commit is contained in:
Leo Arias
2018-09-06 08:38:29 -06:00
committed by Francisco Giordano
parent b8a70f0e55
commit 616124e37c
6 changed files with 35 additions and 10 deletions

View File

@ -13,8 +13,11 @@ function shouldBehaveLikeOwnable (owner, [anyone]) {
});
it('changes owner after transfer', async function () {
(await this.ownable.isOwner({ from: anyone })).should.be.equal(false);
await this.ownable.transferOwnership(anyone, { from: owner });
(await this.ownable.owner()).should.equal(anyone);
(await this.ownable.isOwner({ from: anyone })).should.be.equal(true);
});
it('should prevent non-owners from transfering', async function () {