Andreas Nedbal
00959a8645
add exporting of mute relationships
2023-01-01 22:42:50 +01:00
Georg Gadinger
55f60bc5a7
remove requires for exporter
...
handled by Zeitwerk now
2022-12-29 20:57:28 +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
Karina Kwiatek
854b2fd5c6
Use `Rails.public_path.join`
2022-12-04 23:48:21 +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
Georg Gadinger
61cea34f5e
replace Timecop with ActiveSupport::Testing::TimeHelpers
...
resolves #525
2022-07-19 17:18:27 +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
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
a533f68c65
Adjust exporter and user count to match new ban system
2022-06-26 18:32:18 +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
Andreas Nedbal
e1298c7b87
Fix Hound nits
2022-04-16 12:56:18 +02:00
Andreas Nedbal
b5c40619be
Add tests for `Retrospring::Version`
2022-04-16 12:56:18 +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
Karina Kwiatek
5c9659ccf5
Update Exporter spec to not include removed relationship count fields
2022-01-23 16:48:53 +01:00
Karina Kwiatek
5d7039a2d2
Add test for `Exporter#collect_user_info`
2022-01-14 23:29:49 +01:00