Skip to content
This repository has been archived by the owner on Dec 5, 2019. It is now read-only.

Commit

Permalink
Pipeline:Rest - Remove getAuthenticator since there is no use for it
Browse files Browse the repository at this point in the history
  • Loading branch information
kborchers committed Oct 11, 2012
1 parent cdfe233 commit cb1a7a8
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 14 deletions.
10 changes: 0 additions & 10 deletions src/pipeline/adapters/rest.js
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
7 changes: 3 additions & 4 deletions tests/unit/authentication/authentication-rest.js
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand All @@ -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" );

});

Expand Down

0 comments on commit cb1a7a8

Please sign in to comment.