Core Suite
|
- |
27 |
Authentication
|
- |
3 |
should authenticate the user when returning from the OAuth gateway
|
- |
|
Method: getAuthorizationUrl
|
- |
2 |
should include the client ID
|
- |
|
should include the redirect URI
|
- |
|
Instantiation
|
- |
12 |
should assign the authenticated flag
|
- |
|
should assign the client ID
|
- |
|
should assign the client secret
|
- |
|
should assign the access token
|
- |
|
should assign the redirect_url
|
- |
|
should assign the API version
|
- |
|
should assign the API protocol as HTTPS
|
- |
|
should assign the hostname as "api.bufferapp.com"
|
- |
|
should assign the host in the format "#{protocol}://#{hostname}"
|
- |
|
should set the options to be passed to querystring.stringify()
|
- |
|
should generate the OAuth client
|
- |
|
should retrieve the Buffer configuration
|
- |
|
API Interaction
|
- |
6 |
Method: get
|
- |
3 |
should respond
|
- |
|
should not throw an error
|
- |
|
should use the GET method
|
- |
|
Method: post
|
- |
3 |
should respond
|
- |
|
should not throw an error
|
- |
|
should use the POST method
|
- |
|
Profiles
|
- |
6 |
Method: getProfiles
|
- |
4 |
should respond
|
- |
|
should not throw an error
|
- |
|
should associate the profiles with the client
|
- |
|
should instantiate each profile with the Profile object
|
- |
|
Method: getProfile
|
- |
2 |
should respond
|
- |
|
should retrieve the list of profiles
|
- |
|
Utility Suite
|
- |
2 |
Method: mapObject
|
- |
1 |
should copy the parameters from the full object to the empty object
|
- |
|
Method: shuffleArray
|
- |
1 |
should randomise the order of the array
|
- |
|
Module: Profile
|
- |
18 |
Instantiation
|
- |
3 |
should assign the updates object structure
|
- |
|
should be able to be instantiated with a profile ID
|
- |
|
should be able to be instantiated with a profile object
|
- |
|
Property: pending_updates
|
- |
1 |
should retrieve the pending update list
|
- |
|
Property: sent_updates
|
- |
1 |
should retrieve the sent update list
|
- |
|
Method: getPendingUpdates
|
- |
3 |
should not throw an error
|
- |
|
should associate the pending updates with the profile
|
- |
|
should instantiate each update with the Update object
|
- |
|
Method: getSentUpdates
|
- |
3 |
should not throw an error
|
- |
|
should associate the sent updates with the profile
|
- |
|
should instantiate each update with the Update object
|
- |
|
Method: getSchedules
|
- |
2 |
should not throw an error
|
- |
|
should associate the schedules with the profile
|
- |
|
Method: setSchedules
|
- |
2 |
should not throw an error
|
- |
|
should update the schedules associated with the profile
|
- |
|
Method: reorderUpdates
|
- |
1 |
should not throw an error
|
- |
|
Method: shuffleUpdates
|
- |
2 |
should not throw an error
|
- |
|
should return successful
|
- |
|
Module: Update
|
- |
12 |
Instantiation
|
- |
2 |
should be able to be instantiated with an update ID
|
- |
|
should be able to be instantiated with an update object
|
- |
|
Method: save
|
- |
2 |
should not throw an error
|
- |
|
should assign the saved ID to the Update object
|
- |
|
Method: destroy
|
- |
2 |
should not throw an error
|
- |
|
should add an attribute to flag the update as destroyed
|
- |
|
Method: edit
|
- |
2 |
should not throw an error
|
- |
|
should change edit the update object to reflect the new values
|
- |
|
Method: share
|
- |
2 |
should not throw an error
|
- |
|
should retrieve the shared update and map it to the current object
|
- |
|
Method: getInteractions
|
- |
1 |
should not throw an error
|
- |
|
Method: moveToTop
|
- |
1 |
should not throw an error
|
- |
|