Skip to content
Snippets Groups Projects
  1. Apr 10, 2017
    • Matt Jankowski's avatar
      Admin base controller (#1465) · dbe9f33f
      Matt Jankowski authored
      * Add Admin::BaseController to wrap admin area
      
      Extracts the setting of the `admin` layout and verifying that users are admins
      to a common base class for the admin/ controllers.
      
      * Add basic coverage for admin/reports and admin/settings controllers
      dbe9f33f
  2. Apr 09, 2017
  3. Apr 08, 2017
  4. Apr 07, 2017
    • Joël Quenneville's avatar
      Implement pending specs on Status · 4fdeac21
      Joël Quenneville authored
      Implement the two pending specs on `Status`: `reblogs_count` and
      `favourites_count`.
      4fdeac21
    • Chad Pytel's avatar
      Use I18n for media attachment validation errors · ad5ddd5e
      Chad Pytel authored
      These are currently user facing errors, but are not localized. This adds the
      ability for these messages to be localized.
      ad5ddd5e
    • Chad Pytel's avatar
      Add specs for PostStatusService · 13c00770
      Chad Pytel authored
      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
      13c00770
    • Joël Quenneville's avatar
      DRY up reblog vs original status check · d4c94fa0
      Joël Quenneville authored
      Checking reblog vs original status was happening in multiple places
      across the app. For views, this logic was encapsulated in a helper
      method named `proper_status` but in the other layers of the app, the
      logic was duplicated.
      
      Because the logic is used at all layers of the app, we extracted it into
      a `Status#proper` method on the model and changed all uses of the logic
      to use this method. There is now a single source of truth for this
      condition.
      
      We added test coverage to untested methods that got refactored.
      d4c94fa0
    • Chad Pytel's avatar
      Add specs for media attachment validations · 38bec798
      Chad Pytel authored
      There are currently not specs for the two media validations that are performed
      by `PostStatusService`. This adds specs for the validations that ensure that you
      cannot attach more than four files, and that a status cannot have both image and
      video attachments.
      38bec798
  5. Apr 05, 2017
  6. Apr 04, 2017
  7. Apr 03, 2017
  8. Mar 30, 2017
  9. Mar 28, 2017
  10. Mar 22, 2017
  11. Mar 05, 2017
  12. Mar 03, 2017
  13. Mar 02, 2017
  14. Feb 22, 2017
  15. Feb 14, 2017
  16. Feb 12, 2017
  17. Feb 11, 2017
  18. Feb 06, 2017
  19. Feb 05, 2017
  20. Feb 01, 2017
  21. Jan 29, 2017
Loading