Skip to content

Commit

Permalink
#73 test exception responses
Browse files Browse the repository at this point in the history
  • Loading branch information
Adam Tuttle committed Jul 19, 2012
1 parent 912f8d5 commit 5e232e5
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion tests/resources/exceptionMember.cfc
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<cfcomponent extends="taffy.core.resource" taffy:uri="/echo/throwException">
<cfcomponent extends="taffy.core.resource" taffy:uri="/throwException">

<cffunction name="get">
<cfthrow message="this is the exception message." detail="this is the exception detail." />
Expand Down
2 changes: 1 addition & 1 deletion tests/tests/TestCore.cfc
Original file line number Diff line number Diff line change
Expand Up @@ -336,7 +336,7 @@
}

function returns_error_when_resource_throws_exception(){
local.result = apiCall("get", "/echo/throwException.json");
local.result = apiCall("get", "/throwException.json", "");
debug(local.result);
assertEquals(500, local.result.responseHeader.status_code);
assertTrue( isJson( local.result.fileContent ), "Response body was not json" );
Expand Down

0 comments on commit 5e232e5

Please sign in to comment.