Permalink
Browse files

update dependecies and use in-memory spec

sequelize JSON serialisation bug is fixed
spec now runs in-memory on sqlite
  • Loading branch information...
1 parent a6bac5d commit 46e2938401f323abe5717e78da2f4296a5234df5 @dgf committed Jul 19, 2012
Showing with 20 additions and 24 deletions.
  1. +3 −5 Cakefile
  2. +1 −0 lib/c3store.js
  3. +9 −9 package.json
  4. +7 −10 spec/c3store.spec.coffee
View
@@ -1,13 +1,11 @@
-fs = require 'fs'
{print} = require 'util'
{spawn} = require 'child_process'
jasmineBinary = './node_modules/jasmine-node/bin/jasmine-node'
# ANSI Terminal Colors
-bold = '\033[0;1m'
-green = '\033[0;32m'
-reset = '\033[0m'
-red = '\033[0;31m'
+green = '\x1b[32m'
+reset = '\x1b[0m'
+red = '\x1b[31m'
log = (message, color) -> console.log color + message + reset
View

Some generated files are not rendered by default. Learn more.

Oops, something went wrong.
View
@@ -1,6 +1,6 @@
{
"name": "c3store"
- , "version": "0.0.3"
+ , "version": "0.0.4"
, "author": "Danny Gräf <github@dagnu.de>"
, "keywords": ["session", "store", "SQL"]
@@ -17,19 +17,19 @@
}
, "dependencies": {
- "coffee-script": "1.2.x"
- , "underscore": "1.3.x"
- , "sequelize": "1.3.x"
- , "crudl-model": "0.1.x"
+ "coffee-script": "~1.3.3"
+ , "underscore": "~1.3.3"
+ , "sequelize": "~1.4.1"
+ , "crudl-model": "~0.1.1"
}
, "devDependencies": {
- "connect": "1.8.x"
- , "jasmine-node": "1.0.x"
- , "sqlite3": "2.1.x"
+ "connect": "~2.3.9"
+ , "jasmine-node": "~1.0.26"
+ , "sqlite3": "~2.1.5"
}
, "engines": {
- "node": "~0.6.7"
+ "node": "~0.8.2"
}
, "scripts": {
View
@@ -7,11 +7,12 @@ spec = require './store.spec.template'
sqlSpec = (db) ->
-#
- describe 'Sequelize session store implementation', ->
#
+ describe 'Sequelize session store implementation', ->
+ #
spec (sessions) ->
- store = new C3Store db, optional: type: Sequelize.STRING
+ store = new C3Store db, optional:
+ type: Sequelize.STRING
sync = (done) -> store.SequelizeSession.sync(force: true).success(done)
aCheck 'sync model', sync, 50
@@ -21,11 +22,7 @@ sqlSpec = (db) ->
store
-describe 'MySQL', -> sqlSpec new Sequelize 'checkfoo', 'root', '', logging: false
-xdescribe 'sqlite3', -> sqlSpec new Sequelize 'session-store', 'sa', 'secret',
- #logging: false
+xdescribe 'MySQL', -> sqlSpec new Sequelize 'session', 'root', '', logging: false
+describe 'sqlite3', -> sqlSpec new Sequelize 'session', 'sa', 'secret',
+ logging: false
dialect: 'sqlite'
- storage: 'foo.db'
-# storage: ':memory:'
-# in Database#all('SELECT * FROM `Sessions` WHERE `sid`=\'sid1\' LIMIT 1;', [Function])
-# => SyntaxError: Unexpected token \

0 comments on commit 46e2938

Please sign in to comment.