Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
tag: v0.0.6
Fetching contributors…

Cannot retrieve contributors at this time

28 lines (18 sloc) 0.591 kb
should = require 'should'
try config = require '../conf/test' catch e
ron = require '../index'
describe 'client', ->
client = null
before (next) ->
client = ron config
next()
after (next) ->
client.quit next
it 'init', (next) ->
next()
it 'should hash a string', (next) ->
client.get('users').hash('1').should.eql '356a192b7913b04c54574d18c28d46e6395428ab'
next()
it 'should hash a number', (next) ->
client.get('users').hash(1).should.eql '356a192b7913b04c54574d18c28d46e6395428ab'
next()
Jump to Line
Something went wrong with that request. Please try again.