Browse Source

Change spec descriptions

Makoto Inoue 9 years ago
parent
commit
9509298622
1 changed files with 5 additions and 5 deletions
  1. 5 5
      test/Bounty.js

+ 5 - 5
test/Bounty.js

@@ -33,7 +33,7 @@ contract('Bounty', function(accounts) {
       then(done);
       then(done);
   })
   })
 
 
-  it("ends", function(done){
+  it("empties itself when killed", function(done){
     var target = SecureTargetMock.deployed();
     var target = SecureTargetMock.deployed();
     var owner = accounts[0];
     var owner = accounts[0];
     var reward = web3.toWei(1, "ether");
     var reward = web3.toWei(1, "ether");
@@ -51,7 +51,7 @@ contract('Bounty', function(accounts) {
       then(done);
       then(done);
   })
   })
 
 
-  describe("SecureTargetMock", function(){
+  describe("Against secure contract", function(){
     it("checkInvariant returns true", function(done){
     it("checkInvariant returns true", function(done){
       var targetFactory = SecureTargetFactory.deployed();
       var targetFactory = SecureTargetFactory.deployed();
       var bounty;
       var bounty;
@@ -69,7 +69,7 @@ contract('Bounty', function(accounts) {
         then(done);
         then(done);
     })
     })
 
 
-    it("cannot calim reward", function(done){
+    it("cannot claim reward", function(done){
       var targetFactory = SecureTargetFactory.deployed();
       var targetFactory = SecureTargetFactory.deployed();
       var owner = accounts[0];
       var owner = accounts[0];
       var researcher = accounts[1];
       var researcher = accounts[1];
@@ -104,7 +104,7 @@ contract('Bounty', function(accounts) {
     })
     })
   })
   })
 
 
-  describe("InsecureTargetMock", function(){
+  describe("Against broken contract", function(){
     it("checkInvariant returns false", function(done){
     it("checkInvariant returns false", function(done){
       var targetFactory = InsecureTargetFactory.deployed();
       var targetFactory = InsecureTargetFactory.deployed();
       var bounty;
       var bounty;
@@ -122,7 +122,7 @@ contract('Bounty', function(accounts) {
         then(done);
         then(done);
     })
     })
 
 
-    it("calims reward", function(done){
+    it("claims reward", function(done){
       var targetFactory = InsecureTargetFactory.deployed();
       var targetFactory = InsecureTargetFactory.deployed();
       var owner = accounts[0];
       var owner = accounts[0];
       var researcher = accounts[1];
       var researcher = accounts[1];