if (!(typeof MochaWeb === 'undefined')){
  MochaWeb.testOnly(function(){
    describe("Giblet Methods", function(){
      before(function(done) {
        var gibletData = {
          taskname: 'Find tandem bike',
          url: 'https://sfbay.craigslist.org/search/bik',
          keywords: 'tandem'
        };
        done();
      });

      it("should add new Giblet when addGiblet is called", function(){
        chai.assert.equal(5,5);
      });

    });
  });
}



// if (!(typeof MochaWeb === 'undefined')){
//   MochaWeb.testOnly(function(){
//     var selectGraceHopper = function(){
//       Session.set("selected_player", Players.findOne({name: "Grace Hopper"})._id);
//     };

//     var unselectPlayer = function(){
//       Session.set("selected_player", null);
//       Meteor.flush();
//     }

//     describe("Select Grace Hopper", function(){
//       before(function(done){
//         Meteor.autorun(function(){
//           var grace = Players.findOne({name: "Grace Hopper"});
//           if (grace){
//             selectGraceHopper();
//             done();
//           }
//         })
//       });

//       it("should show Grace the inside div class='name' (above the give points button)", function(){
//         Meteor.flush();
//         chai.assert.equal($("div.details > div.name").html(), "Grace Hopper");
//       });
//     });

//     describe("Point Assignment", function(){
//       before(function(){
//         selectGraceHopper();
//       });

//       it("should give a player 5 points when they are selected and the button is pressed", function(){
//         var graceInitialPoints = Players.findOne({name: "Grace Hopper"}).score;
//         $("input:button").click();
//         chai.assert.equal(graceInitialPoints + 5, Players.findOne({name: "Grace Hopper"}).score);
//       });
//     });
//   });
// }
@@ -1,28 +1,120 @@
+var expect = chai.expect;%0Avar assert = chai.assert;%0Avar oldGiblets, oldLength, gibletData;%0A%0A
 if (!(typeof MochaWeb === 'u
@@ -239,19 +239,99 @@
         
-var
+oldGiblets = Giblets.find().fetch();%0A        oldLength = oldGiblets.length;%0A       
  gibletD
@@ -468,57 +468,279 @@
 dem'
-%0A        %7D;%0A        done();%0A      %7D);%0A%0A      it(%22
+,%0A          SMS: true,%0A          email: true,%0A          frequency: '1'%0A        %7D;%0A        done();%0A      %7D);%0A      it('should be able to fetch Giblets from collection', function() %7B%0A        console.log(gibletData);%0A        expect(oldGiblets).to.exist;%0A      %7D);%0A      it('
 shou
@@ -781,17 +781,17 @@
 s called
-%22
+'
 , functi
@@ -808,29 +808,146 @@
     
-chai.assert.equal(5,5
+Meteor.call('addGiblet', gibletData);%0A        var newLength = Giblets.find().fetch().length;%0A        assert.equal(newLength, oldLength + 1
 );%0A 

Test whether addGiblet method works