Skip to content
This repository has been archived by the owner on Jun 21, 2018. It is now read-only.

Commit

Permalink
Improved test coverage
Browse files Browse the repository at this point in the history
  • Loading branch information
stekycz committed Mar 14, 2014
1 parent f03374f commit 91121c7
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 0 deletions.
10 changes: 10 additions & 0 deletions test/unit/blueprint-loader-test.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -25,3 +25,13 @@ describe 'load()', () ->

it 'will call error callback', () ->
load __dirname + '/../fixtures/error-blueprint.apib', success, error

describe 'invalid path', () ->
success = (ast) ->
assert.fail ast, null, 'should not be called'
error = (msg) ->
assert.isObject msg
assert.include Object.keys(msg), 'code'

it 'will call error callback', () ->
load __dirname + '/../fixtures/not-exists.apib', success, error
2 changes: 2 additions & 0 deletions test/unit/request/request-processor-test.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,8 @@ describe 'RequestProcessor', () ->
request = new RequestBuilder 'localhost', '3334'
request.setMethod 'GET'
request.setUriTemplate '/api/v1/gists'
request.setHeader 'Content-Type', 'application/json'
request.setBody '{}'
instance = new RequestProcessor request

describe 'constructor', () ->
Expand Down

0 comments on commit 91121c7

Please sign in to comment.