Skip to content
This repository has been archived by the owner on May 10, 2024. It is now read-only.

Commit

Permalink
passing RAMLVersion to osprey.server() in tests
Browse files Browse the repository at this point in the history
  • Loading branch information
jstoiko committed Oct 10, 2016
1 parent b5a3e88 commit 0931af5
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 13 deletions.
12 changes: 1 addition & 11 deletions test/fixtures/example.raml
Original file line number Diff line number Diff line change
@@ -1,17 +1,8 @@
#%RAML 1.0
title: Example API
baseUri: http://example.com

/users:
get:
# headers:
# foo: string
# bar?: number
# post:
# body:
# application/json:
# properties:
# firstname: string
# lastname?: string
/json:
post:
body:
Expand Down Expand Up @@ -48,7 +39,6 @@ baseUri: http://example.com
hello:
type: string
pattern: "[a-z]+"

/users/{userId}:
uriParameters:
userId:
Expand Down
2 changes: 1 addition & 1 deletion test/proxy.js
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ describe('proxy', function () {
var raml = ramlApi.toJSON({
serializeMetadata: false
})
var ospreyApp = osprey.server(raml)
var ospreyApp = osprey.server(raml, { RAMLVersion: ramlApi.RAMLVersion() })
var proxyApp = osprey.proxy(ospreyApp, server.url())

proxy = serverAddress(proxyApp)
Expand Down
2 changes: 1 addition & 1 deletion test/raml08.js
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ describe('RAML 0.8', function () {
var raml = ramlApi.toJSON({
serializeMetadata: false
})
var ospreyApp = osprey.server(raml)
var ospreyApp = osprey.server(raml, { RAMLVersion: ramlApi.RAMLVersion() })
var proxyApp = osprey.proxy(ospreyApp, server.url())

proxy = serverAddress(proxyApp)
Expand Down

0 comments on commit 0931af5

Please sign in to comment.