@@ -3,7 +3,7 @@
* Base contract with an owner
*/
contract Ownable {
- address owner;
+ address public owner;
function Ownable() {
owner = msg.sender;
@@ -2,5 +2,6 @@ module.exports = function(deployer) {
deployer.deploy(PullPaymentBid);
deployer.deploy(BadArrayUse);
deployer.deploy(Bounty);
+ deployer.deploy(Ownable);
deployer.deploy(LimitFunds);
};
@@ -0,0 +1,11 @@
+contract('Ownable', function(accounts) {
+ it("should have an owner", function(done) {
+ var ownable = Ownable.deployed();
+ return ownable.owner()
+ .then(function(owner) {
+ assert.isTrue(owner != 0);
+ })
+ .then(done)
+
+ });
+});