Skip to content
This repository has been archived by the owner on Apr 16, 2019. It is now read-only.

Commit

Permalink
something wasn't pushing the new versions, then i figured it out
Browse files Browse the repository at this point in the history
  • Loading branch information
dominictarr committed Jun 5, 2011
1 parent 2a51293 commit 7ceb786
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 9 deletions.
13 changes: 5 additions & 8 deletions server.js
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -52,14 +52,11 @@ function save (repo){
repo.saving = true repo.saving = true


db.get('' + repo._id, function (err,doc){ db.get('' + repo._id, function (err,doc){
db.save({ var obj = {}
_id: '' + repo._id, for(var key in repo)
_rev: doc && doc._rev, obj[key] = repo[key]
time: new Date, delete obj._events
username: repo.username, db.save(obj,
project: repo.project,
state: repo.state,
},
function (err,data){ function (err,data){
repo._rev = data._rev repo._rev = data._rev
repo.saving = null repo.saving = null
Expand Down
6 changes: 6 additions & 0 deletions test/test.asynct.js
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -92,6 +92,12 @@ exports ['integrate a repo'] = function (test){
it(changes >= 4).ok() it(changes >= 4).ok()
it(events).property('length',0) it(events).property('length',0)
console.log(report) console.log(report)
it(curry).has({
type: 'repo',
report: {status: it.typeof('string'), tests: []},
installation: [],
package: {name: it.typeof('string'), version: it.typeof('string')}
})
/* it(report).has([{ /* it(report).has([{
tests:it.property('length',it.ok()) tests:it.property('length',it.ok())
},{ },{
Expand Down
1 change: 0 additions & 1 deletion testbed.js
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -258,7 +258,6 @@ var also = {
function next (test){ function next (test){
metatest.run({filename: test }, metatest.run({filename: test },
function (err,report){ function (err,report){

self.change('test',err,report) self.change('test',err,report)
self.report.tests.push(report) self.report.tests.push(report)
if(err) if(err)
Expand Down

0 comments on commit 7ceb786

Please sign in to comment.