Commit Graph

332 Commits

Author SHA1 Message Date
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
Karina Kwiatek 6500d7ac71 Update usages of bans 2022-01-02 19:50:44 +01:00
Karina Kwiatek e4241d2001 Create user ban model
Co-authored-by: Georg Gadinger <nilsding@nilsding.org>
2022-01-02 19:50:01 +01:00
Andreas Nedbal 0a530bfd63 Add test cases for invalid URIs in Markdown 2022-01-02 19:31:58 +01:00
Karina Kwiatek b7ce9cdbba
Merge pull request #222 from Retrospring/feature/muting 2022-01-02 15:31:49 +01:00
Karina Kwiatek 9ce1fc0ce4 Address review comments from @nilsding
Co-authored-by: Georg Gadinger <nilsding@nilsding.org>
2022-01-01 22:10:13 +01:00
Karina Kwiatek 5a597fca5c Add test for `ServicesController` 2022-01-01 21:58:36 +01:00
Karina Kwiatek 6c0e6b1d30 Create mute rules AJAX controller 2022-01-01 00:38:38 +01:00
Karina Kwiatek f85769eb55 Add mute rules 2022-01-01 00:38:36 +01:00
Andreas Nedbal 2c72278cdd Add tests to check for `#question_markdown` not processing markup 2021-12-31 22:40:38 +01:00
Andreas Nedbal bc65b42b02 Add tests for `StaticController#linkfilter` 2021-12-31 22:40:38 +01:00
Andreas Nedbal 5eb297136b Add tests for `MarkdownHelper` 2021-12-31 22:40:38 +01:00
Karina Kwiatek 2a2bd6ad14
Merge pull request #250 from Retrospring/eager-loading
Eager load relationships for questions, answers and users
2021-12-31 22:37:41 +01:00
Karina Kwiatek 817c221551 Add basic test for user questions 2021-12-31 15:56:15 +01:00
Karina Kwiatek 2f355d5041 Add basic tests for followers & following in `UserController` 2021-12-31 15:36:16 +01:00
Karina Kwiatek 7e57735b88 Add basic test for answer & user show views 2021-12-31 13:59:15 +01:00
Andreas Nedbal 51bb2ae425 Add tests for new answer page theme logic 2021-12-30 02:03:34 +01:00
Karina Kwiatek b438c89256 Fix broken tests 2021-12-28 15:11:41 +01:00
Karina Kwiatek a534dd04d5 Test all cases of error handling for `ShareWorker` 2021-12-28 03:59:45 +01:00
Karina Kwiatek 45dae78ed0 Adjust `ShareWorker` test to not be dependent on config options 2021-12-28 03:03:59 +01:00
Karina Kwiatek d73e269d85 Test `ShareWorker`'s handling of unhandled exceptions 2021-12-27 23:02:32 +01:00
Karina Kwiatek 0b926a43e4 Test `ShareWorker`'s handling of deleted records 2021-12-27 18:53:59 +01:00
Andreas Nedbal b544145b93 Fix `SocialHelper::TwitterMethods` tests so they work anywhere 2021-12-27 14:28:11 +01:00
Andreas Nedbal 8dd14e4a05 Fix `SocialHelper::TumblrMethods` tests so they work anywhere 2021-12-27 14:28:11 +01:00
Andreas Nedbal 719e393ed1 Add test for `Services::Tumblr` 2021-12-27 14:28:11 +01:00
Andreas Nedbal 4ddfba9a79 Add tests for `SocialHelper::TumblrMethods` 2021-12-26 22:07:58 +01:00
Andreas Nedbal b202a1f7e7 Add tests for `SocialHelper::TwitterMethods` 2021-12-26 22:07:42 +01:00
Karina Kwiatek 053ebafbc5
Merge pull request #213 from Retrospring/refactor/profile
Move profile fields to seperate table
2021-12-25 22:44:10 +01:00
Karina Kwiatek 570425821f Add test for handling answers that don't need to be shortened for tweets 2021-12-25 22:27:32 +01:00
Karina Kwiatek 3204aaa2e9 Add test for tweet shortening
Co-authored-by: Georg Gadinger <nilsding@nilsding.org>
2021-12-25 22:08:20 +01:00
Karina Kwiatek fa025ced92 Update `Ajax::AnswerController` test to expect multiple `ShareWorker` jobs 2021-12-25 15:22:19 +01:00
Karina Kwiatek 65fa3ff018 Add test for updating user profile 2021-12-22 00:48:05 +01:00
Karina Kwiatek 00496a1596 Update remaining references to profile fields 2021-12-22 00:03:19 +01:00
Andreas Nedbal f8af42b16f fix user creation in test case 2021-10-03 21:52:07 +02:00
Andreas Nedbal 85210589cb add test case for user count on about page 2021-10-03 21:26:46 +02:00
Karina Kwiatek 89ce3e6e53
Merge pull request #184 from Retrospring/mobile-layout
Adjust site layout to be nicer to use on smaller screens
2021-08-13 12:11:38 +02:00
Karina Kwiatek f65875ae7e Add specs for theme-color helpers 2021-08-13 01:45:00 +02:00
Karina Kwiatek d81641ac18 Add theme model spec 2021-08-13 01:23:07 +02:00
Karina Kwiatek bd5995ef65 Add specs for `nav_entry` helper 2021-08-13 00:53:11 +02:00
Karina Kwiatek 6d49045368 Test if direct flag is being assigned correctly when a question is created 2021-08-12 00:19:36 +02:00
Karina Kwiatek 86d179d590
Merge branch 'master' into feature/opengraph 2021-08-08 14:24:05 +02:00
Karina Kwiatek c0107e2bc4 Add test for rails_admin_path_for_resource 2021-08-06 22:33:02 +02:00
Karina Kwiatek d08d0156dc Move graph helpers to separate module 2021-08-06 22:24:21 +02:00
Karina Kwiatek 7249e45989 Add tests for user_twitter_card and answer_opengraph 2021-08-06 21:38:51 +02:00
Karina Kwiatek 5b05c27091 Add test for ApplicationHelper#user_opengraph 2021-08-06 20:49:47 +02:00
Dominik Kwiatek 9558fbf9fe Add sign in tests 2020-12-25 02:07:37 +01:00
Dominik Kwiatek b4358772e1 Fix test for expired OTP 2020-11-15 21:27:38 +01:00
Dominik Kwiatek 4dc00a0114 Fix test for activating with expired code 2020-11-15 10:29:09 +01:00
Dominik Kwiatek aeb1396422 Add tests for recovery codes 2020-11-15 10:21:06 +01:00
Dominik Kwiatek f12d56ff7d Remove unused spec file for TotpRecoveryCode model 2020-11-01 19:25:49 +01:00
Dominik Kwiatek b4f479a00f Generate recovery keys on TOTP setup 2020-11-01 17:55:31 +01:00
Dominik Kwiatek 7f4d6cdc0f Remove #two_factor_entry test 2020-10-23 21:05:04 +02:00
Dominik Kwiatek d7a1750694 Implement @nilsding's review changes 2020-10-23 20:45:06 +02:00
Dominik Kwiatek 482b7992a9 Add test for #destroy_2fa endpoint 2020-10-21 16:52:59 +02:00
Dominik Kwiatek 55de0e45d2 Add test for #update_2fa endpoint 2020-10-21 16:47:07 +02:00
Dominik Kwiatek d3cc421225 Rename settings partials to match naming conventions 2020-10-21 13:49:12 +02:00
Dominik Kwiatek 556050aa66 Add tests for security settings page 2020-10-21 13:44:00 +02:00
Dominik Kwiatek febcf347ee Add basic login form tests 2020-10-20 11:44:20 +02:00
Dominik Kwiatek 00da21a13d Redirect away from two factor entry page if no target user is set in session 2020-10-19 12:20:44 +02:00
Dominik M. Kwiatek 4c7ec05198 Address @nilsding's review comments 2020-05-27 22:27:54 +01:00
Dominik M. Kwiatek e512d5502d Mock verify_captcha 2020-05-27 21:47:27 +01:00
Dominik M. Kwiatek c4fb5d1db9 Add registration tests 2020-05-27 20:07:39 +01:00
Dominik M. Kwiatek 9f01da8e03 Remove registrations_controller_spec.rb 2020-05-27 20:07:39 +01:00
Dominik M. Kwiatek a92dd54be3 Address @nilsding's review comments 2020-05-27 20:07:39 +01:00
Georg Gadinger b58883e004 Remove "ask a group" feature 2020-05-25 18:34:43 +02:00
Georg Gadinger ea0685136e Rename Groups to Lists
haha regexp go brrr

special thanks to @seatsea for helping me out with the French locales
2020-05-25 18:04:54 +02:00
Dominik M. Kwiatek 5be3d1f89d Add uploader tests 2020-05-21 21:25:43 +01:00
Georg Gadinger 65f152b762 Move user theme to the end of the body --> turbolinks has turbo links again 2020-05-09 02:08:31 +02:00
Andreas Nedbal 57505b0812 Add hex color spec for pure blue 2020-05-07 20:19:00 +02:00
Andreas Nedbal 3a4b04b5da Don't track theme style tags with turbolinks 2020-05-07 02:13:07 +02:00
Andreas Nedbal 4044696a8a Add specs for `ThemeHelper#render_theme` 2020-05-06 13:48:16 +02:00
Andreas Nedbal ec998686ff Add non-ffffff test for `ThemeHelper#get_hex_color_from_theme_value` 2020-05-06 13:37:26 +02:00
Andreas Nedbal b7b2adde44 Add specs for ThemeHelper 2020-05-05 20:17:29 +02:00
Georg Gadinger 0504e4a5d4 require rspec-sidekiq only in specs 2020-05-01 22:43:08 +02:00
Georg Gadinger 0109322610 add spec for Ajax::ModerationController 2020-05-01 22:41:26 +02:00
Georg Gadinger 3e95d5ebeb add spec for Ajax::ReportController 2020-05-01 10:17:05 +02:00
Georg Gadinger 6f3f3afa2f add spec for Ajax::GroupController 2020-05-01 10:17:05 +02:00
Georg Gadinger aaa60d0197 add spec for Ajax::SubscriptionController 2020-05-01 10:17:05 +02:00
Georg Gadinger 137743001f spec: move user to shared context 2020-05-01 10:17:05 +02:00
Georg Gadinger 54532c71e1 add spec for Ajax::QuestionController
also fix some minor annoyances
2020-05-01 10:17:05 +02:00
Georg Gadinger 52dfab57d4 add spec for Ajax::FriendController 2020-05-01 10:17:05 +02:00
Georg Gadinger 1824fb1c25 add spec for Ajax::InboxController 2020-05-01 10:17:05 +02:00
Georg Gadinger 6a7e8a3023 spec: bit less code duplication 2020-05-01 10:17:05 +02:00
Georg Gadinger fcdb640b9a add spec for Ajax::SmileController 2020-05-01 10:17:05 +02:00
Georg Gadinger dd5f718f31 Question: user association is optional 2020-05-01 10:17:05 +02:00
Georg Gadinger 07f489430c add spec for Ajax::CommentController 2020-05-01 10:17:05 +02:00
Georg Gadinger 781a4ba8b4 Use codecov's bash-based github action 2020-05-01 10:13:42 +02:00
Georg Gadinger 5bb94927a2 Add codecov 2020-04-30 20:18:50 +02:00
Georg Gadinger 561219ddaf add spec for Ajax::AnswerController 2020-04-28 22:13:19 +02:00
Georg Gadinger 101b3b68d3 Use cursored pagination, remove WillPaginate 2020-04-20 23:13:24 +02:00
Dominik M. Kwiatek 516bc48aa0
Merge pull request #70 from Retrospring/feature/announcements
Implement Announcements
2020-04-19 23:10:47 +01:00
Karina Kwiatek 6e605758a6 Minor cleanup in AnnouncementController 2020-04-19 22:59:57 +01:00
Karina Kwiatek 16ade832ca Address @nilsding's review changes 2020-04-19 22:58:47 +01:00
Karina Kwiatek c4164a8f34 Add AnnouncementController tests 2020-04-19 22:40:06 +01:00
Karina Kwiatek 864d5844dc Add Announcement tests 2020-04-19 22:38:01 +01:00
Georg Gadinger 477ec3e9c9 Do not allow creation of groups with empty names 2020-04-19 23:28:50 +02:00
Karina Kwiatek 391f4a28ed Merge branch 'master' into feature/announcements
# Conflicts:
#	db/schema.rb
2020-04-19 21:52:58 +01:00
Georg Gadinger 946bb3ae9d Use Rolify for admin and moderator roles 2020-04-19 22:35:58 +02:00
Georg Gadinger a0c9641994 Remove useless specs 2020-04-19 22:31:43 +02:00
Karina Kwiatek 8a632a09cd Create Announcement model & controller 2020-04-19 20:12:22 +01:00
Georg Gadinger 2d3e55a7c4 Replace FactoryGirl with FactoryBot 2020-04-19 17:27:42 +02:00
Yuki 7af0b73174 Fix tests 2015-07-21 22:38:40 +05:30
pixeldesu 6adebde7da fix test, the second 2015-06-08 22:01:03 +02:00
pixeldesu a213e53157 fix test ("I removed the '1 new question' display") 2015-06-08 21:57:24 +02:00
pixeldesu ba6b2345d7 attempt to fix the "click Followers link" test 2015-06-07 15:18:03 +02:00
Yuki 3d2b884b74 Revert to 'rspec fixes' -- 'Inbox user answers a question' is a mysterious failure 2015-05-11 16:09:12 +05:30
Yuki fa1ef1de21 this probably is it, if it's not then it's your problem, i didn't cause this 2015-05-11 15:34:08 +05:30
Yuki eee53e8f6e WHAT IS MAKING THIS ERROR WTF 2015-05-11 15:20:20 +05:30
Yuki bda777fe2d Hopefully this fixes the last error in travis, doesn't error on my end 2015-05-11 14:57:37 +05:30
Yuki 56b64d70bd rspec fixes 2015-05-11 14:40:42 +05:30
schisma fd374ca640 remove subscribecontroller 2015-05-10 22:35:36 +02:00
Yuki 2204227273 Feature-comment-smiles complete (fix Retrospring/bugs#42) 2015-05-04 07:09:47 +05:30
Yuki ecffd07344 Support for post subscriptions 2015-04-21 06:42:11 +05:30
Andreas N d1ed602353 update test 2015-01-31 16:26:22 +01:00
nilsding b26ec1dd0b fixed question generator not working if privacy_allow_anonymous_questions is false (GitHub issue #71) 2015-01-27 17:51:39 +01:00
nilsding 2b1c109332 fucking 2015-01-26 17:55:58 +01:00
nilsding 13bdbaa430 centred the "New notifications will appear here" text and also fixed class for notifications entry on navbar 2015-01-26 17:53:23 +01:00
nilsding 6d68da5ae1 added Rcov formatter for simplecov 2015-01-25 19:56:39 +01:00
nilsding 626cedca0e attempt #2 2015-01-25 19:42:13 +01:00
nilsding ef4b0e78f8 attempt to prevent phantomjs timeouts 2015-01-25 19:33:41 +01:00
nilsding bae7307778 no longer require factory_girl_rails 2015-01-25 19:06:22 +01:00
nilsding 05334e3bd0 added some specs 2015-01-18 14:15:21 +01:00
nilsding da8e76edb0 added follow user spec 2014-12-26 15:28:53 +01:00
nilsding 6ac9af787e added Capistrano 2014-12-21 22:12:59 +01:00
nilsding be78c449a0 added a few more specs 2014-12-07 12:42:03 +01:00
nilsding 1f8de9cd78 added RSpec support things 2014-12-07 12:41:42 +01:00
nilsding 2cc0e1c52c renamed user_feature_spec to user_show_spec 2014-12-07 12:41:23 +01:00
nilsding cc94b08e58 more specs! 2014-12-07 11:33:26 +01:00
nilsding d4115538b1 changed user factory 2014-12-07 11:33:14 +01:00
nilsding 652050ef43 removed user request spec 2014-12-07 11:32:53 +01:00
nilsding 5f43155eb5 fixed spec 2014-12-01 18:58:49 +01:00
nilsding c801fa3430 fixed tests 2014-11-18 20:58:55 +01:00
nilsding c4d48190b6 added database_cleaner 2014-11-18 19:58:14 +01:00
nilsding 76e6b8f5ec tests. 2014-11-17 23:25:28 +01:00
nilsding cae59cd5b4 added specs 2014-11-14 20:45:30 +01:00
nilsding d6382eba15 added RSpec 2014-11-13 18:12:51 +01:00