You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
mastodon/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.
9 years ago
..
web
account_spec.rb DRY up reblog vs original status check 9 years ago
block_spec.rb add more tests to models 9 years ago
domain_block_spec.rb add more tests to models 9 years ago
favourite_spec.rb Stop trying to shoehorn all Salmon updates into the poor database-connected 9 years ago
feed_spec.rb
follow_request_spec.rb add more tests to models 9 years ago
follow_spec.rb add more tests to models 9 years ago
import_spec.rb Import feature for following/blocking lists (addresses #62, #177, #201, #454) 9 years ago
media_attachment_spec.rb
mention_spec.rb add more tests to models 9 years ago
mute_spec.rb Mute button progress so far. WIP, doesn't entirely work correctly. 9 years ago
notification_spec.rb
preview_card_spec.rb Fix #463 - Fetch and display previews of URLs using OpenGraph tags 9 years ago
report_spec.rb Adding POST /api/v1/reports API, and a UI for submitting reports 9 years ago
status_spec.rb DRY up reblog vs original status check 9 years ago
stream_entry_spec.rb Stop trying to shoehorn all Salmon updates into the poor database-connected 9 years ago
subscription_spec.rb Fix #463 - Fetch and display previews of URLs using OpenGraph tags 9 years ago
tag_spec.rb Fix wrongful matching of last period in extended usernames 9 years ago
user_spec.rb Fix spec 9 years ago