Skip to content
Snippets Groups Projects
  1. Apr 09, 2017
    • Matt Jankowski's avatar
      Helper cleanup (#1348) · ea6c930c
      Matt Jankowski authored
      * Remove unused helper files
      
      * Add coverage for application helper
      
      * Add coverage for StreamEntriesHelper #display_name
      ea6c930c
    • Matt Jankowski's avatar
      Clean up about page (#1282) · e5282e4e
      Matt Jankowski authored
      * Add InstancePresenter to expose site details
      
      * Clean up about controller, use instance presenter
      e5282e4e
    • Matt Jankowski's avatar
      Search cleanup (#1333) · 388ec0d5
      Matt Jankowski authored
      * Clean up SQL output in Tag and Account search methods
      
      * Add basic coverage for Tag.search_for
      
      * Add coverage for Account.search_for
      
      * Add coverage for Account.advanced_search_for
      388ec0d5
    • Matt Jankowski's avatar
      Ignore implied formats for catch all route requests (#1340) · 71706f21
      Matt Jankowski authored
      A request to `/test` would show the custom 404 page, but a request to
      `/test.test` would return a 404 with an empty body.
      
      This change ignores the format on incoming catch all route requests, so that the
      html 404 page is returned on these requests.
      71706f21
  2. Apr 08, 2017
  3. 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
  4. Apr 05, 2017
  5. Apr 04, 2017
  6. Apr 03, 2017
  7. Mar 30, 2017
  8. Mar 28, 2017
  9. Mar 22, 2017
  10. Mar 05, 2017
  11. Mar 03, 2017
  12. Mar 02, 2017
  13. Feb 22, 2017
  14. Feb 14, 2017
  15. Feb 12, 2017
  16. Feb 11, 2017
  17. Feb 06, 2017
  18. Feb 05, 2017
  19. Feb 01, 2017
  20. Jan 29, 2017
  21. Jan 24, 2017
Loading