Skip to content

Instantly share code, notes, and snippets.

@jayfresh
Created October 27, 2014 12:40
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jayfresh/22ec848f7aa90aaf461f to your computer and use it in GitHub Desktop.
Save jayfresh/22ec848f7aa90aaf461f to your computer and use it in GitHub Desktop.
acceptance tests
Acceptance tests - 12715 ms
Organisations and their properties - 74 ms
Organisations have access to only their own properties - 74 ms
Inviting Users to Organisations - 176 ms
should send them a token in an email - 73 ms
should send long, non-guessable tokens - 46 ms
following the token link and setting up an account should put the User in the Organisation - 57 ms
Creating Tenancies - 68 ms
Tenancies have a default status of on the market - 35 ms
Tenancies have their workflow items defaulted to false - 33 ms
Tenancies proceeding to Tenancy Agreement - 509 ms
Tenancies cannot proceed to AST if tenant ID step not completed - 92 ms
Tenancies cannot proceed to AST if tenant guarantor not approved nor opted out - 75 ms
Tenancies can proceed to AST if tenant guarantor is opted out (with all other approvals) - 80 ms
Tenancies cannot proceed to AST if house is not full and part-full house not approved - 76 ms
Tenancies can proceed to AST if steps completed and house full - 99 ms
Tenancies can proceed to AST if steps completed and part-full house approved - 87 ms
Tenancy status setting - 62 ms
Tenancy status can only be set to one of three values, representing on the market, under offer, or let - 62 ms
Tenancy reset - 172 ms
Resetting a tenancy should set its status to 'reset' - 78 ms
Resetting a tenancy should leave all the other fields untouched - 94 ms
Creating a tenancy agreement - 1958 ms
should create a tenancy agreement with the property details filled in - 72 ms
should put a PDF on Amazon S3 with a non-guessable name and publically accessible - 1886 ms
Tenants - 58 ms
Tenants start with no workflow items completed - 58 ms
Templates - 36 ms
must be of type 'email' or 'contract' - 36 ms
IPN handling - 442 ms
on the market tenancies - 168 ms
should mark the holding payment as paid if the item_name is "Holding Payment" and the payment_status is "Completed" - 100 ms
should put the paying tenant on the tenancy they are paying the holding payment for - 68 ms
under offer tenancies - 274 ms
should mark the holding payment as refunded if the item_name is "Holding Payment" and the payment_status is "Refunded" - 123 ms
should mark the security deposit as paid for the tenant if the item_name is "Security Deposit" and the payment_status is "Completed" - 71 ms
should mark the security deposit as refunded for the tenant if the item_name is "Security Deposit" and the payment_status is "Refunded" - 80 ms
Audit Items - 332 ms
should allow valid types: 'email' or 'note' or 'sms' or 'action' - 45 ms
should forbid invalid types - 59 ms
should require a subtype - 45 ms
should include the target document ID - 45 ms
should include the target tenant modifying user (if present) - 42 ms
should include the target tenancy modifying user (if present) - 36 ms
should be created after every email sent - 59 ms
Audit trail items should be created after model changes - 597 ms
Tenant pays a holding deposit - 56 ms
Tenant pays a security deposit - 46 ms
Tenancy housemates change (storing new housemates) - 45 ms
Admin approves tenant ID - 62 ms
Admin approves tenant guarantor - 45 ms
Tenant adds ID - 47 ms
Tenant adds guarantor ID - 53 ms
Tenant opts out of guarantor - 46 ms
Property manager marks tenancy agreement signed - 68 ms
Tenancy becomes inclusive or exclusive of utilities - 43 ms
Tenancy becomes part-full approved - 42 ms
New tenancy is created - 44 ms
Email notifications and reminders - 8230 ms
And templating - 8230 ms
To tenant when their ID is approved - 192 ms
To tenant when they opt out of having a guarantor - 186 ms
To all tenants when tenancy is reset - 214 ms
To all tenants when tenancy AST is marked as signed - 194 ms
To tenants when added to a tenancy - 709 ms
To a tenant when holding payment made - 187 ms
To tenant when security deposit paid - 215 ms
To tenant when security deposit refunded - 257 ms
To tenant when holding payment refunded - 227 ms
To all tenants when property is part-full approved - 712 ms
Tenant created - 570 ms
To all PMs when tenant opts out of having a guarantor - 197 ms
To all PMs (on all organisations) when tenant changes guarantor information - 217 ms
To all PMs when tenant makes holding payment - 185 ms
To all PMs when tenancy is ready for AST generation (after tenancy change) - 198 ms
To all PMs when tenancy is ready for AST generation (after tenant change) - 219 ms
To all PMs when all tenants on a tenancy have paid their security deposits - 225 ms
Email reminders - 3326 ms
Emails tenants without guarantor info or opt-out - 1114 ms
Emails tenants without approved personal ID - 1086 ms
Emails lead tenants where property not full and part-full tenancy not approved - 1126 ms
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment