Permalink
Browse files

Odstraneni Horaa, nahrazeni balickem mocco

  • Loading branch information...
JakubMrozek committed Nov 22, 2012
1 parent aa3f272 commit 41ae37c886dfb625af7fe3baf36ded47654471ba
Showing with 5 additions and 5 deletions.
  1. +1 −1 package.json
  2. +4 −4 test/backend/unit/models/Page.test.js
View
@@ -16,7 +16,7 @@
"mocha": "1.6.x",
"supertest": "0.4.x",
"should": "1.2.x",
- "horaa": "0.1.x",
+ "mocco": "1.0.x",
"jshint": "0.9.x",
"grunt": "0.3.x",
"testacular": "0.4.x"
@@ -1,5 +1,5 @@
+var mocco = require('mocco');
var Page = require(process.cwd() + '/models/Page');
-var PageHoraa = require('horaa')(process.cwd() + '/models/Page');
describe('model Page', function(){
@@ -35,11 +35,11 @@ describe('model Page', function(){
describe('metoda findOneByUrl', function() {
it('zavola metodu findOne() s podminkou pro vyber dokumentu podle url', function(){
- PageHoraa.hijack('findOne', function(url) {
- url.should.eql({url: 'url-stranky'});
+ mocco.mock(Page).hijack(function findOne(url){
+ url.should.eql({url: 'url-stranky'});
});
Page.findOneByUrl('url-stranky', function(){});
- PageHoraa.restore('findOne');
+ mocco.restore();
});
});
});

0 comments on commit 41ae37c

Please sign in to comment.