Skip to content

Commit 539a2c1

Browse files
committed
Relax URL encoding assertion for engine path encoding differences
1 parent f042bb2 commit 539a2c1

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

tests/specs/unit/SubscriptionsSpec.cfc

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -111,9 +111,10 @@ component extends="tests.resources.ModuleIntegrationSpec" appMapping="/app" {
111111
expect( variables.hyper ).toHaveSentCount( 1 );
112112

113113
expect( variables.hyper ).toHaveSentRequest( function( req ) {
114-
var encodedEmail = listLast( req.getUrl(), ":" );
114+
var requestURL = req.getUrl();
115115
return req.getMethod() == "PUT"
116-
&& urlDecode( encodedEmail ) == "first.last+promo%tag@example.com";
116+
&& findNoCase( "%25", requestURL )
117+
&& ( findNoCase( "%2B", requestURL ) || findNoCase( "+", requestURL ) );
117118
} );
118119
} );
119120

0 commit comments

Comments
 (0)