Commit Graph

285 Commits

Author SHA1 Message Date
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
Karina Kwiatek cca8795b01 Allow anonymous questions to be returned when the user has disabled anonymous questions
Fixes #267
2022-06-15 17:49:04 +02:00
Karina Kwiatek 41e476a2f7 Prevent other user's anon blocks from affecting each other 2022-06-15 14:26:48 +02:00
Karina Kwiatek e660b731d7 Appease the dog overlords 2022-06-15 14:26:48 +02:00
Karina Kwiatek 1e86043750 Add tests for removing anonymous blocks 2022-06-15 14:26:48 +02:00
Karina Kwiatek cd3f1591c9 Add test for creating anonymous blocks 2022-06-15 14:26:48 +02:00
Karina Kwiatek 37c63f0f52 Add tests for direct questions with muted terms or anon blocks 2022-06-15 14:26:48 +02:00
Karina Kwiatek 0db51536c5 Appease the dog overlords 2022-06-13 11:56:34 +02:00
Karina Kwiatek 99bae4a7a7 Add tests for adding blocked users to lists 2022-06-13 11:56:34 +02:00
Karina Kwiatek 6a15a323cf Add tests for reacting to comments while blocked/blocking 2022-06-13 11:56:34 +02:00
Karina Kwiatek 25ed1e4605 Add tests for commenting on answers while blocked 2022-06-13 11:56:34 +02:00
Karina Kwiatek 0eb3f53b45 Add tests for asking questions while blocked 2022-06-13 11:56:34 +02:00
Karina Kwiatek 04243c2ec8 Appease the dog overlords 2022-06-13 11:56:34 +02:00
Karina Kwiatek 9b5fefc661 Update relationship controller tests for blocking-related actions 2022-06-13 11:56:34 +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 c6c3c32260 Add tests for answering while blocked/blocking 2022-06-13 11:56:34 +02:00
Andreas Nedbal a7d2c7be7e Fix Hound nits 2022-04-17 22:58:42 +02:00
Andreas Nedbal a768d09862 Count users that only answer questions as active 2022-04-17 22:58:42 +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
Georg Gadinger 6f2c2654a1 typoed_email_validator: add new ending to the typo list 2022-04-10 10:39:40 +02:00
Georg Gadinger 3d6fb9dc34 typoed_email_validator: add new ending to the typo list
also:
- consider '.mail' TLD a typo
- get rid of a deprecation warning
2022-03-04 21:12:35 +01:00
Andreas Nedbal cb19d54a97 Fix errors in test cases 2022-02-13 23:41:50 +01:00
Andreas Nedbal 544c184981 Fix expected flash texts in `ServicesController` tests 2022-01-29 20:08:41 +01:00
Andreas Nedbal c2b448ae8c Fix codestyle of announcement controller spec 2022-01-25 22:31:25 +01:00
Andreas Nedbal a28f581aed Add tests announcement failure cases 2022-01-25 22:31:25 +01: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 8d59ef9398 Use `screen_name` instead of `target_user` param in `Ajax::RelationshipController` 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 ce57414595 Update `UserController` tests to match rename of followings 2022-01-23 16:48:53 +01:00
Karina Kwiatek 3962671135 Implement relationship logic as use case 2022-01-23 16:48:53 +01:00
Karina Kwiatek ce951453a2 Make relationships polymorphic 2022-01-23 16:48:53 +01:00
Andreas Nedbal d56dfc02f9 Move consent POST-logic to separate action 2022-01-22 22:50:32 +01:00
Andreas Nedbal 3711c676da Fix Ruby codestyle 2022-01-22 22:50:32 +01:00
Andreas Nedbal af66e69ca5 Add tests for `FeedbackHelper` 2022-01-22 22:50:32 +01:00
Andreas Nedbal 067dfc3a50 Add tests for `FeedbackController` 2022-01-22 22:50:32 +01:00
Georg Gadinger 1997f89cc0 typoed_email_validator: add new ending to the typo list 2022-01-17 20:41:39 +01:00
Georg Gadinger 989f4a5132 run Rubocop on changed files 2022-01-17 20:41:39 +01:00
Andreas Nedbal 1c6d22355a Add a quote testcase for the question markdown spec 2022-01-16 22:33:48 +01:00
Andreas Nedbal 60c7c86b05 Remove unnecessary `.dup` 2022-01-16 22:33:48 +01:00
Andreas Nedbal 3bdca34c2d QuestionMarkdown adjustments
* Using `Redcarpet::Render::StripDown` as base now
* Support for autolinks and named links in Markdown
* Named links in questions just return the actual link as text
* Fixed codestyle in files
2022-01-16 22:33:48 +01:00
Andreas Nedbal 34b9f0bc61 Add tests for `ApplicationHelper` 2022-01-16 14:17:29 +01:00
Andreas Nedbal 914b56369b Adjust ApplicationHelper tests 2022-01-16 14:17:29 +01:00
Karina Kwiatek 5d7039a2d2 Add test for `Exporter#collect_user_info` 2022-01-14 23:29:49 +01:00
Karina Kwiatek b167c4e938 Add tests for privacy settings 2022-01-13 21:42:06 +01:00
Karina Kwiatek 9c84f946ff Fix test failing under macOS 2022-01-13 21:42:06 +01:00
Georg Gadinger 29923fac84 add validator for typoed emails
It happens quite often that people typo their email address (I blame
phone keyboards for that).  Catch common cases in a validator and
tell the user that they have a typo in their email.

Why yes, I did write the tests for this first, thanks for asking!
2022-01-11 19:18:23 +01:00
Andreas Nedbal 515e6d09ff Use text ellipsis instead of three single dots for shortening
Co-authored-by: Karina Kwiatek <6197148+raccube@users.noreply.github.com>
2022-01-10 22:53:58 +01:00
Andreas Nedbal e8d3b9629d Use proper indentation for test values
Co-authored-by: Georg Gadinger <nilsding@nilsding.org>
2022-01-10 22:53:58 +01:00
Andreas Nedbal ba280f7996 Add tests for `ApplicationHelper::TitleMethods` 2022-01-10 22:53:58 +01:00
Andreas Nedbal 48c9e6132b Split graph and bootstrap helper tests into own files 2022-01-10 22:53:58 +01:00
Karina Kwiatek d3aaaeb12d
Double question character limit (#292) 2022-01-10 22:01:47 +01:00
Karina Kwiatek 136e2fa016
Merge pull request #272 from Retrospring/feature/social-post-tagging
Add the ability to post to services with a tag
2022-01-07 19:40:52 +01:00
Karina Kwiatek 96e48a833b
Merge pull request #194 from Retrospring/refactor/user-bans
Implement ban history
2022-01-06 14:05:33 +01:00
Karina Kwiatek b398265a98 Address review comments from @nilsding
Co-authored-by: Georg Gadinger <nilsding@nilsding.org>
2022-01-06 13:59:04 +01:00
Karina Kwiatek 683fffd734 Add the ability to post to services with a tag 2022-01-05 19:49:59 +01:00
Georg Gadinger 3c58257d21 remove tumblr
Resolves #274
2022-01-05 19:32:52 +01:00
Karina Kwiatek d06e2c97b2 Add test for blanking out a user's profile if they were banned for spam 2022-01-02 19:50:44 +01:00
Karina Kwiatek 7677ed21a4 Update tests for unbanning users 2022-01-02 19:50:44 +01:00
Karina Kwiatek 0659ff1f9a Update tests for unbanning users 2022-01-02 19:50:44 +01:00