 				throw err if err
 				doc.should.have.property "status", "Completed"
 				doc.response.should.be.ok
-		done()
+				done()
 
 
 

http = require "http"
messageStore = require "../lib/messageStore"
MongoClient = require('mongodb').MongoClient


describe ".storeTransaction", ->
	# beforeEach (done)->
	# 	MongoClient.connect "mongodb://127.0.0.1:27017/test", {native_parser:true},(error,db) ->
	# 		if error
	# 			return done error
	# 	done()	
	after (done)->
		MongoClient.connect "mongodb://127.0.0.1:27017/test", {native_parser:true},(error,db) ->
			if error
				return done error
			db.collection("transaction").remove (err, doc) ->
			done()	
	it "it should be able to save the transaction in the db", (done) ->
		request = 
			path: "/store/provider"

				body: "<HTTP body>"
				method: "POST"
				timestamp: "<ISO 8601>"
		collection.insert transaction, (err, doc) ->
				throw err if err
		response =  
			status: 201
