Permalink
Browse files

Pipeline:Rest - Remove getAuthenticator since there is no use for it

  • Loading branch information...
1 parent cdfe233 commit cb1a7a849c2808161a32340417db41fa46df5a24 @kborchers kborchers committed Oct 11, 2012
Showing with 3 additions and 14 deletions.
  1. +0 −10 src/pipeline/adapters/rest.js
  2. +3 −4 tests/unit/authentication/authentication-rest.js
@@ -80,16 +80,6 @@
this.getRecordId = function() {
return recordId;
};
-
- /**
- Returns the value of the private authenticator var
- @private
- @augments Rest
- @returns {Object}
- */
- this.getAuthenticator = function() {
- return authenticator;
- };
};
// Public Methods
@@ -17,7 +17,7 @@
equal( auth1.auth.isAuthenticated(), false, "Current Auth Status" );
});
test( "Authentication Pipeline init", function() {
- expect( 4 );
+ expect( 3 );
var auth2 = AeroGear.Auth({
name: "auth",
@@ -30,15 +30,14 @@
{
name: "pipe1",
settings: {
- authenticator: auth2
+ authenticator: auth2.auth
}
}
]).pipes;
equal( Object.keys( auth2 ).length, 1, "Single Auth Module Created" );
equal( Object.keys( auth2 )[ 0 ], "auth", "Module named auth" );
- equal( Object.keys( pipeline ).length, 1, "1 Pipe Created" );
- equal( pipeline.pipe1.getAuthenticator().auth.getName(), "auth", "Authenticator named auth added to pipe" );
+ equal( Object.keys( pipeline ).length, 1, "1 Pipe Created with auth module" );
});

0 comments on commit cb1a7a8

Please sign in to comment.