]> cat aescling's git repositories - mastodon.git/commit
Add specs for PostStatusService
authorChad Pytel <chad@thoughtbot.com>
Fri, 7 Apr 2017 17:48:38 +0000 (13:48 -0400)
committerChad Pytel <chad@thoughtbot.com>
Fri, 7 Apr 2017 18:21:16 +0000 (14:21 -0400)
commit13c0077003288416b8cacd5d339f8796bc347f39
treeba8cb1e531448535169503bfc1a2545fa0b44d33
parent38bec798117446603b304c0d14ca39bae5ee8be8
Add specs for PostStatusService

This implements all pending specs, and adds additional coverage for the
following functionality:

* Normal status creation
* Creating a reply status
* Creating a sensitive status
* Creating a status with spoiler text
* A status with no spoiler text gets an empty string for spoiler text
* Creating a status with custom visibility
* Creating a status for an application
* Processing mentions
* Processing Hashtags
* Pinging PuSH hubs
* Crawling links
* Attaching media
spec/fabricators/status_fabricator.rb
spec/services/post_status_service_spec.rb