Update tests to support latest ripple-lib:

* Update ripple-lib api usage
* Use latest npm ripple-lib
  * Tested with bignumber.js branch and tip of develop
* Use new version of coffee-script
  * Better source maps
* Update mocha
* Add assert-diff for better error reporting
* Add rconsole, enabled via USE_RCONSOLE env var
  * For use with manual installation only
This commit is contained in:
Nicholas Dudfield
2015-01-17 12:40:11 +07:00
committed by Nik Bougalis
parent 44450bf644
commit 4dc2cf8a6b
9 changed files with 72 additions and 78 deletions

View File

@@ -188,7 +188,8 @@ config = testutils.init_config()
#################################### HELPERS ###################################
get_lines = (remote, acc, done) ->
remote.request_account_lines acc, null, 'validated', (err, lines) ->
args = {account: acc, ledger: 'validated'}
remote.request_account_lines args, (err, lines) ->
done(lines)
account_set_factory = (remote, ledger, alias_for) ->
@@ -844,7 +845,7 @@ execute_if_enabled (suite, enforced) ->
test_if enforced, 'offer was removed by offer_create', (done) ->
args = { account: 'A4', ledger: 'validated' }
remote.request_account_offers args, (err, res) ->
assert res.offers.length == 0
done()