Skip to content

Commit

Permalink
Merge branch 'development' of github.com:Ortus-Solutions/TestBox into…
Browse files Browse the repository at this point in the history
… development
  • Loading branch information
lmajano committed Sep 10, 2024
2 parents 3ca9cb4 + 2d14882 commit 1a63eb6
Showing 1 changed file with 7 additions and 10 deletions.
17 changes: 7 additions & 10 deletions system/BaseSpec.cfc
Original file line number Diff line number Diff line change
Expand Up @@ -1839,12 +1839,12 @@ component {
* ------------------------------------------------------------------
*/

/**
* On missing method handler for dynamic assertions
*
* @missingMethodName The name of the missing method
* @missingMethodArguments The arguments passed to the missing method
*/
/**
* On missing method handler for dynamic assertions
*
* @missingMethodName The name of the missing method
* @missingMethodArguments The arguments passed to the missing method
*/
function onMissingMethod( missingMethodName, missingMethodArguments ){
// If the method follows the pattern "assert{target}" then get the target into a variable
if ( left( arguments.missingMethodName, 6 ) == "assert" && len( arguments.missingMethodName ) > 6 ) {
Expand All @@ -1857,10 +1857,7 @@ component {
}

// Throw an exception
throw(
type = "InvalidMethod",
message = "The method #arguments.missingMethodName# does not exist."
);
throw( type = "InvalidMethod", message = "The method #arguments.missingMethodName# does not exist." );
}

}

0 comments on commit 1a63eb6

Please sign in to comment.