Andreas Nedbal
87c2ed3ab7
List direct questions for current users or mods
2022-08-20 17:21:47 +02:00
Georg Gadinger
cb158c1fac
typoed_email_validator: add new endings to the typo list
2022-08-14 20:49:51 +02:00
Karina Kwiatek
d9a2e7dde8
Merge pull request #559 from Retrospring/return-hashes-from-use-cases
2022-07-31 10:30:14 +02:00
Karina Kwiatek
afa1a102d6
Prevent Twitter markdown from stripping `<///3`
2022-07-30 19:41:47 +02:00
Andreas Nedbal
27eaef45ef
Appease the reviewdog overlords
2022-07-30 16:51:07 +02:00
Andreas Nedbal
c131d3e024
Fix user session specs
2022-07-30 16:51:07 +02:00
Karina Kwiatek
7f6f852841
Fix tests for `UseCase::Question::CreateFollowers`
2022-07-30 15:51:28 +02:00
Andreas Nedbal
65b69b86e4
Fix test for asked count in UseCase::Question::Create
2022-07-25 13:24:14 +02:00
Karina Kwiatek
a39a6e2826
Merge pull request #567 from Retrospring/feature/improving-asks
2022-07-25 07:16:20 +02:00
Andreas Nedbal
777b25f967
Add test for question create UseCase checking if direct is set
2022-07-24 21:59:55 +02:00
Georg Gadinger
5b70be74c2
typoed_email_validator: add new endings to the typo list
2022-07-24 21:44:27 +02:00
Georg Gadinger
58a3b89d67
add very important spec
2022-07-23 12:29:17 +02:00
Georg Gadinger
66efa5d4f4
clean up routes
...
- replace `match` with `get`/`post`/`patch`/`delete`
- format routes.rb
- rename the `show_user_{profile,question,answer}` routes to
`profile`, `question`, `answer` so `url_for` (used by Rails Admin)
works fine for these things
- also add `to_param` to the `User` model so that `url_for(some_user)`
uses the user name
2022-07-23 12:14:06 +02:00
Karina Kwiatek
62b29b3bd1
Upgrade to Ruby 3.0.4
2022-07-23 12:06:24 +02:00
Karina Kwiatek
0789ed773e
Update registration tests to use a fixed forbidden screen name list
2022-07-23 09:11:32 +02:00
Karina Kwiatek
fb73ce05db
Appease the dog overlords
2022-07-23 09:11:32 +02:00
Karina Kwiatek
fc161e2dcf
Use `/@username` for profile paths
2022-07-23 09:11:32 +02:00
Karina Kwiatek
a39960d269
Add tests for `TimelineController`
2022-07-21 16:08:51 +02:00
Georg Gadinger
61cea34f5e
replace Timecop with ActiveSupport::Testing::TimeHelpers
...
resolves #525
2022-07-19 17:18:27 +02:00
Andreas Nedbal
bdf409de1f
Remove moderation comment tests
2022-07-19 11:17:45 +02:00
Karina Kwiatek
977ebdfe4d
Appease the dog overlords
2022-07-18 23:24:05 +02:00
Karina Kwiatek
98d7bec924
Move link filter into its own controller
2022-07-18 23:24:05 +02:00
Karina Kwiatek
7abdac2d8a
Move About, ToS & Privacy Policy into `AboutController`
2022-07-18 23:24:05 +02:00
Andreas Nedbal
840ae55198
Remove vote method tests
2022-07-18 23:10:07 +02:00
Karina Kwiatek
84cf436e82
Appease the dog overlods
2022-07-18 23:09:53 +02:00
Karina Kwiatek
7fdb2168a6
Move web app manifest into its own controller
2022-07-18 23:09:53 +02:00
Karina Kwiatek
c384dde809
Split up web app manifest action
2022-07-18 23:09:53 +02:00
Karina Kwiatek
5e4819764a
Test theme color in web app manifest
2022-07-18 23:09:53 +02:00
Karina Kwiatek
e11b222368
Add test for `static#webapp_manifest`
2022-07-18 23:09:53 +02:00
Karina Kwiatek
c6530cc4e7
Appease the dog overlords
2022-07-17 10:05:20 +02:00
Karina Kwiatek
d01a2ee252
Add tests for question create followers use case
2022-07-17 10:05:20 +02:00
Karina Kwiatek
5d542161a0
Add tests for question create use case
2022-07-17 10:05:20 +02:00
Karina Kwiatek
58b212f76d
Add tests for question destroy use case
2022-07-17 10:05:20 +02:00
Karina Kwiatek
0e9be78588
Create use case for deleting questions
2022-07-17 10:05:20 +02:00
Karina Kwiatek
22a66f4d1a
Fix lint errors
2022-07-17 10:05:20 +02:00
Karina Kwiatek
d9ff4d5765
Refactor Ajax::QuestionController#create into separate UseCases
...
Co-authored-by: Georg Gadinger <nilsding@nilsding.org>
2022-07-17 10:05:20 +02:00
Andreas Nedbal
47120e8d24
Appease the dog overlords
2022-07-17 09:40:34 +02:00
Andreas Nedbal
0555279cd2
Adjust response results in list controller tests
2022-07-17 09:40:34 +02:00
Karina Kwiatek
f396167704
Add test for trying to delete account while an export is pending
2022-07-16 21:29:20 +02:00
Karina Kwiatek
48bd2f5bc7
Add missing file extension to export URL
2022-07-16 15:58:30 +02:00
Karina Kwiatek
428db25c71
Add test for `Exporter#publish`
2022-07-16 15:58:30 +02:00
Karina Kwiatek
bc07a9fbb0
Test exporting with profile picture
2022-07-16 15:58:30 +02:00
Karina Kwiatek
c009dff560
Test that all header image sizes exist
2022-07-16 15:58:30 +02:00
Karina Kwiatek
eaf61f1a6a
Add test for `Export#finalize` with a profile header attached
2022-07-16 15:58:30 +02:00
Karina Kwiatek
45a87bf2b4
Remove unnecessary context blocks
2022-07-16 15:58:30 +02:00
Karina Kwiatek
37bc1e64de
Add test for `Exporter#collect_comments`
2022-07-16 15:58:30 +02:00
Karina Kwiatek
75301900b3
Correct time precision in `Exporter#collect_questions` test
2022-07-16 15:58:30 +02:00
Karina Kwiatek
77ddf2feae
Add test for `Exporter#collect_answers`
2022-07-16 15:58:30 +02:00
Karina Kwiatek
262705c3f0
Add test for `Exporter#collect_questions`
2022-07-16 15:58:30 +02:00
Karina Kwiatek
f244252ade
Mock Rails root
2022-07-16 15:58:30 +02:00
Karina Kwiatek
13d4927461
Test outputs of `Exporter#finalize`
2022-07-16 15:58:30 +02:00
Karina Kwiatek
6a1747eee7
Reload times to match precision
2022-07-16 15:58:30 +02:00
Karina Kwiatek
8e8b5ddb2a
Add test for `Exporter#collect_smiles`
2022-07-16 15:58:30 +02:00
Karina Kwiatek
d07b05ff24
Reformat `Exporter` spec
2022-07-16 15:58:30 +02:00
Karina Kwiatek
bd5ec792b7
Prevent text in links from being double-escaped
2022-07-16 15:57:32 +02:00
Karina Kwiatek
601aa07de1
Add model tests for `Answer`
2022-07-09 01:15:31 +02:00
Karina Kwiatek
90b2aa0110
Add model tests for `Appendable::Reaction`
2022-07-09 01:15:31 +02:00
Andreas Nedbal
7a568889b8
Appease the dog overlords
2022-07-06 21:54:34 +02:00
Andreas Nedbal
eb16ff83a4
Fix test to match adjusted responses
2022-07-06 21:54:34 +02:00
Karina Kwiatek
9bcf1a80ad
Merge `author_name` with `author_identifier`
2022-07-06 19:56:04 +02:00
Karina Kwiatek
561946cab9
Fix issues from bad rebase
2022-07-05 23:23:37 +02:00
Karina Kwiatek
251dff6cda
Add test for `NotificationsController`
2022-07-05 23:23:37 +02:00
Karina Kwiatek
19dcb96dcd
Update remaining usages of `Smile`/`CommentSmile`
2022-07-05 23:23:37 +02:00
Karina Kwiatek
1b22872002
Update usages of `Smile`/`CommentSmile` to `Appendable::Reaction` in tests
2022-07-05 23:23:37 +02:00
Andreas Nedbal
f7a56fa58e
Add test for `Settings::DataController#index`
2022-07-05 20:40:19 +02:00
Andreas Nedbal
8446278e80
Move blocks spec into proper controller
...
accidentally moved it into the `MutesController` fist
2022-07-05 20:40:19 +02:00
Andreas Nedbal
6b5e59fa1c
Move tests for mute view into own controller spec file
2022-07-05 20:40:19 +02:00
Georg Gadinger
917e32b4fc
routes.rb: use 'authenticate' block from devise instead of defining the constraint ourselves
2022-07-05 18:20:30 +02:00
Andreas Nedbal
887a053e71
Appease the dog overlords
2022-07-03 18:32:36 +02:00
Andreas Nedbal
1a848af303
Move TOTP-related code into new spec files
2022-07-03 18:32:36 +02:00
Karina Kwiatek
400994179a
Add tests for `UserBan` model
2022-07-02 17:08:44 +02:00
Andreas Nedbal
9e4c03b765
Appease the dog overlords
2022-07-02 16:36:14 +02:00
Andreas Nedbal
a65232f975
Add tests for `ExportController#create`
2022-07-02 16:36:14 +02:00
Andreas Nedbal
46f99b5f01
Add test for `Settings::ExportController` index view
2022-07-02 16:36:14 +02:00
Andreas Nedbal
be56439572
Appease the dog overlords
2022-06-28 23:20:11 +02:00
Andreas Nedbal
9252726432
Move privacy action tests into proper controller spec
2022-06-28 23:20:11 +02:00
Andreas Nedbal
f54980de35
Appease the dog overlords
2022-06-26 22:45:52 +02:00
Andreas Nedbal
6597ab9720
Update tests to reflect new controller structure
2022-06-26 22:45:52 +02:00
Karina Kwiatek
fc8dad4b9e
Add tests for `user_screen_name` helper method
2022-06-26 21:07:28 +02:00
Karina Kwiatek
03a4ea512a
Fix title helper tests
2022-06-26 21:07:28 +02:00
Karina Kwiatek
a9cfa3fccc
Add tests for toggling unmask
2022-06-26 21:07:28 +02:00
Karina Kwiatek
a533f68c65
Adjust exporter and user count to match new ban system
2022-06-26 18:32:18 +02:00
Karina Kwiatek
7330d50023
Add test for logging in while banned
2022-06-26 18:32:18 +02:00
Karina Kwiatek
94aec26588
Move ban creation to `User#ban` method
2022-06-26 18:32:18 +02:00
Andreas Nedbal
2e251474dc
Adjust route definitions in tests
2022-06-26 17:52:44 +02:00
Andreas Nedbal
8993ac16b8
Add spaces to block braces
2022-06-26 17:52:44 +02:00
Andreas Nedbal
54c89d7247
More lint fixes
2022-06-26 17:52:44 +02:00
Andreas Nedbal
417eee2ddc
Appease the dog overlords
2022-06-26 17:52:44 +02:00
Andreas Nedbal
1953f01ba7
Add tests for `Settings::ThemeController`
2022-06-26 17:52:44 +02:00
Andreas Nedbal
360aa8979c
Appease the dog overlords
2022-06-25 15:39:30 +02:00
Andreas Nedbal
ac60bc4b8f
Add tests for `UserController#edit_blocks`
2022-06-25 15:39:30 +02:00
Karina Kwiatek
be8ba63b95
Add a way for moderators to view user inboxes
2022-06-23 22:17:14 +02:00
Karina Kwiatek
0196a9ea10
Test title helpers for custom anon display names
2022-06-23 21:29:27 +02:00
Georg Gadinger
fdcb00edb9
appease the robot canine
2022-06-21 21:41:51 +02:00
Georg Gadinger
ecec7617dd
fix pending specs
2022-06-21 21:41:51 +02:00
Georg Gadinger
b3c7faba03
run Rubocop
2022-06-21 21:41:51 +02:00
Georg Gadinger
06a20d34d2
user_controller_spec: get rid of rails 7 deprecation warning
2022-06-21 21:30:59 +02:00
Georg Gadinger
f0d26a1555
run Rubocop
2022-06-21 21:30:59 +02:00
Georg Gadinger
7ccad7bfab
share_worker_spec: get rid of `should` expectation syntax
2022-06-21 21:30:59 +02:00
Georg Gadinger
c375775daa
typoed_email_validator: add new endings to the typo list
2022-06-21 20:46:48 +02:00