Karina Kwiatek
64ac18843e
Replace usages of `QuestionWorker`
2023-12-11 19:56:50 +01:00
Karina Kwiatek
2327b2ce52
Update tests for single-recipient QuestionWorker behaviour
2023-11-01 22:40:41 +01:00
Karina Kwiatek
d36fbf85f4
Reload target before checking smile count
2023-10-29 20:47:18 +01:00
Andreas Nedbal
4458aba37f
Add tests for reaction use cases
2023-10-29 20:47:18 +01:00
Andreas Nedbal
795e687bc8
Fix reaction exporter spec
2023-10-28 02:44:48 +02:00
Andreas Nedbal
20cf1ac85b
Fix rubocop nits
2023-10-28 02:44:48 +02:00
Andreas Nedbal
1e29d3f86f
Rename `Appendable::Reaction` to `Reaction`
2023-10-28 02:44:48 +02:00
Andreas Nedbal
6efee0053e
Adjust mute rule test case to now expect an error
2023-10-15 10:16:21 +02:00
Karina Kwiatek
f3c7132103
Allow use of `USE_FOG_IN_TESTS` env var
2023-03-05 20:37:52 +01:00
Karina Kwiatek
36c52db8b9
Fix lint errors
2023-03-05 14:06:16 +01:00
Karina Kwiatek
f1809c4dd3
Disable fog in tests
2023-03-05 13:53:27 +01:00
Karina Kwiatek
dd8f51160f
Add test for unpinning when the answer is not pinned
2023-02-12 20:19:50 +01:00
Karina Kwiatek
baea942975
Add check for pinning when the answer is already pinned
2023-02-12 20:19:50 +01:00
Karina Kwiatek
664bf5eab2
Add test for unpin use case
2023-02-12 20:19:50 +01:00
Karina Kwiatek
438884e13a
Add trailing commas (lint)
2023-02-12 20:19:50 +01:00
Karina Kwiatek
5f50a08f03
Adjust answer export test to include pinned_at field
2023-02-12 20:19:50 +01:00
Karina Kwiatek
ed4ec98455
Add use case for pinning answers
2023-02-12 20:19:50 +01:00
Andreas Nedbal
b0f5294243
Appease the dog overlords
2023-02-05 21:54:51 +01:00
Andreas Nedbal
d43e27bcd2
Fix data export specs
2023-02-05 21:54:51 +01:00
Andreas Nedbal
92cb5da58a
Fix theme export specs
2023-01-29 21:17:23 +01:00
Karina Kwiatek
e3254cba42
Remove trailing comma
2023-01-08 17:14:56 +01:00
Karina Kwiatek
7aacb1a364
Test creating question when recipient allows long questions
2023-01-08 14:51:37 +01:00
Karina Kwiatek
3a6814b908
Respect allow long questions setting
2023-01-08 14:03:54 +01:00
Karina Kwiatek
e2f6284982
Update user exporter spec to include `allow_long_questions` field
2023-01-08 14:00:16 +01:00
Karina Kwiatek
b3a7cf388a
Add tests for mute rule use cases
2023-01-02 12:45:35 +01:00
Georg Gadinger
9d38292d4a
question/create_followers: fix incrementing asked_count
2023-01-02 09:20:59 +01:00
Andreas Nedbal
00959a8645
add exporting of mute relationships
2023-01-01 22:42:50 +01:00
Georg Gadinger
fb07eda972
remove errors
2022-12-29 20:57:28 +01:00
Georg Gadinger
9413d23a02
let Zeitwerk autoload the `lib/` directory
...
this also allows the UseCase classes to be hot reloaded in dev 🎉
- remove use_case requires (except for the exporter as Zeitwerk
doesn't know about the subclasses)
- move version.rb to lib/retrospring so that Zeitwerk knows where
to find Retrospring::Version
2022-12-29 20:57:28 +01:00
Andreas Nedbal
8c73636311
Appease the dog overlords
2022-12-28 00:10:59 +01:00
Andreas Nedbal
6df07bb377
Add tests for user-tracked anonymous blocks
2022-12-28 00:10:59 +01:00
Georg Gadinger
3e143954e3
data_export: yeet inbox_entries
2022-12-10 15:47:54 +01:00
Georg Gadinger
2b3e7ab609
add specs for new exporters
2022-12-10 03:28:17 +01:00
Andreas Nedbal
9393374eab
`LoginRequired` -> `NotAuthorized`
2022-11-13 14:38:11 +01:00
Andreas Nedbal
93fcebe6c0
Add tests for user requirement in questions
2022-11-13 14:28:24 +01:00
Karina Kwiatek
74e309e9fc
Apply anonymous blocks without an owner as global
2022-08-20 19:02:37 +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
Andreas Nedbal
777b25f967
Add test for question create UseCase checking if direct is set
2022-07-24 21:59:55 +02:00
Karina Kwiatek
62b29b3bd1
Upgrade to Ruby 3.0.4
2022-07-23 12:06:24 +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
7b17a93075
Update relationship use case tests to not take usernaames and include blocking
2022-06-13 11:56:34 +02:00
Karina Kwiatek
1e5957bfe9
Test relationship use cases using both user objects and screen names as params
2022-01-23 16:48:53 +01:00
Karina Kwiatek
aa683ca5d5
Appease the dog overlords (fix lint errors)
2022-01-23 16:48:53 +01:00
Karina Kwiatek
731ee4bf69
Address review comments from @nilsding
2022-01-23 16:48:53 +01:00
Karina Kwiatek
b4e0699e82
Fix lint errors
2022-01-23 16:48:53 +01:00
Karina Kwiatek
d609435f7c
Update `Ajax::RelationshipController` to use usernames; Test Use Case
2022-01-23 16:48:53 +01:00