Permalink
Browse files

something wasn't pushing the new versions, then i figured it out

  • Loading branch information...
1 parent 2a51293 commit 7ceb78638fe2da211ff19fa4c0cee60909f6b9a3 @dominictarr committed Jun 5, 2011
Showing with 11 additions and 9 deletions.
  1. +5 −8 server.js
  2. +6 −0 test/test.asynct.js
  3. +0 −1 testbed.js
View
@@ -52,14 +52,11 @@ function save (repo){
repo.saving = true
db.get('' + repo._id, function (err,doc){
- db.save({
- _id: '' + repo._id,
- _rev: doc && doc._rev,
- time: new Date,
- username: repo.username,
- project: repo.project,
- state: repo.state,
- },
+ var obj = {}
+ for(var key in repo)
+ obj[key] = repo[key]
+ delete obj._events
+ db.save(obj,
function (err,data){
repo._rev = data._rev
repo.saving = null
View
@@ -92,6 +92,12 @@ exports ['integrate a repo'] = function (test){
it(changes >= 4).ok()
it(events).property('length',0)
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([{
tests:it.property('length',it.ok())
},{
View
@@ -258,7 +258,6 @@ var also = {
function next (test){
metatest.run({filename: test },
function (err,report){
-
self.change('test',err,report)
self.report.tests.push(report)
if(err)

0 comments on commit 7ceb786

Please sign in to comment.