hometown/spec/models
Joël Quenneville d4c94fa004 DRY up reblog vs original status check
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.
2017-04-07 14:18:30 -04:00
..
web Persist UI settings, add missing localizations for German 2017-01-09 14:00:55 +01:00
account_spec.rb DRY up reblog vs original status check 2017-04-07 14:18:30 -04:00
block_spec.rb add more tests to models 2017-04-05 00:29:56 +02:00
domain_block_spec.rb add more tests to models 2017-04-05 00:29:56 +02:00
favourite_spec.rb Stop trying to shoehorn all Salmon updates into the poor database-connected 2017-02-12 01:19:14 +01:00
feed_spec.rb Adding more test stubs 2016-03-19 12:13:47 +01:00
follow_request_spec.rb add more tests to models 2017-04-05 00:29:56 +02:00
follow_spec.rb add more tests to models 2017-04-05 00:29:56 +02:00
import_spec.rb Import feature for following/blocking lists (addresses #62, #177, #201, #454) 2017-03-30 19:42:33 +02:00
media_attachment_spec.rb Refactored generation of unique tags, URIs and object URLs into own classes, 2016-09-09 20:04:34 +02:00
mention_spec.rb add more tests to models 2017-04-05 00:29:56 +02:00
mute_spec.rb Mute button progress so far. WIP, doesn't entirely work correctly. 2017-03-01 22:31:21 -06:00
notification_spec.rb Adding unified streamable notifications 2016-11-20 19:39:58 +01:00
preview_card_spec.rb Fix #463 - Fetch and display previews of URLs using OpenGraph tags 2017-01-20 01:00:14 +01:00
report_spec.rb Adding POST /api/v1/reports API, and a UI for submitting reports 2017-02-14 20:59:26 +01:00
status_spec.rb DRY up reblog vs original status check 2017-04-07 14:18:30 -04:00
stream_entry_spec.rb Stop trying to shoehorn all Salmon updates into the poor database-connected 2017-02-12 01:19:14 +01:00
subscription_spec.rb Fix #463 - Fetch and display previews of URLs using OpenGraph tags 2017-01-20 01:00:14 +01:00
tag_spec.rb Fix wrongful matching of last period in extended usernames 2017-03-05 18:08:19 +01:00
user_spec.rb Fix spec 2017-04-05 03:31:26 +02:00