From 37633d7f5a26ed06f0b40051e158a15f73e4c303 Mon Sep 17 00:00:00 2001 From: Ryan Casey Date: Fri, 21 Aug 2015 13:22:52 -0700 Subject: [PATCH] Update testing example. --- README.md | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 3e2b4c4d1..392858a74 100644 --- a/README.md +++ b/README.md @@ -180,7 +180,15 @@ Embark includes a testing lib to fastly run & test your contracts in a EVM. ```Javascript # spec/contracts/simple_storage_spec.js -EmbarkSpec = require('embark-framework').Tests; +Embark = require('embark-framework'); +Embark.init(); +Embark.blockchainConfig.loadConfigFile('config/blockchain.yml'); +Embark.contractsConfig.loadConfigFile('config/contracts.yml'); + +var files = ['app/contracts/simpleStorage.sol']; +Embark.contractsConfig.init(files, 'development'); + +var EmbarkSpec = Embark.tests(files); describe("SimpleStorage", function() { beforeAll(function() {