Andreas Nedbal
f87d5c4a43
Fix `SocialHelper::BlueskyMethods` spec
2024-03-01 21:14:59 +01:00
Andreas Nedbal
964ec12a38
Add specs for `SocialHelper::BlueskyMethods`
2024-03-01 21:14:59 +01:00
Ahmed Ejaz
dee298fe33
1448, remove share#copyToClipboard changes
2023-11-26 17:12:56 +01:00
Ahmed Ejaz
ac3dc12ee3
1448, fix lint issues
2023-11-26 17:12:56 +01:00
Ahmed Ejaz
6d1a8c92ec
#1448 , add specs
2023-11-26 17:12:56 +01:00
Andreas Nedbal
6e8f8bcc67
Merge branch 'main' into bugfix/inbox-sharing
2023-10-19 23:44:57 +02:00
Andreas Nedbal
25adb11df3
Fix rubocop nits in helper code and specs
2023-10-19 23:41:14 +02:00
Andreas Nedbal
dc8c5fbf82
Add option to omit URL to `prepare_tweet` helper
2023-10-18 20:01:07 +02:00
Andreas Nedbal
5f0fed8c94
Fix rubocop nits
2023-10-17 20:14:28 +02:00
Andreas Nedbal
e74e233548
Add spec for `answer_share_url`
2023-10-17 20:14:28 +02:00
Karina Kwiatek
d39f37072d
Fix lint errors
2023-08-18 19:43:59 +02:00
Karina Kwiatek
eed4ed5d4b
Add test for putting IDs on nav entries
2023-08-16 21:19:05 +02:00
Karina Kwiatek
46c2412ad8
Update tests for `user_screen_name` to include `target` attribute
2023-05-09 23:08:35 +02:00
Karina Kwiatek
68e0f02a2d
Adapt tests to match new counter methods
2023-03-07 19:14:14 +01:00
Georg Gadinger
4ee2b46b32
add sharing to telegram
2023-02-19 20:58:47 +01:00
Karina Kwiatek
9988527580
Hard wrap in question markdown
2023-02-15 23:52:10 +01:00
Karina Kwiatek
062ca6e65a
Ensure `hard_wrap` renderer option is respected
2023-02-15 23:51:59 +01:00
Andreas Nedbal
024127e62f
Remove connected user transformation from TwitteredMarkdown
2023-02-05 21:54:51 +01:00
Andreas Nedbal
527f3fc3f5
Add tests for new theme helper functionality
2023-01-12 21:03:44 +01:00
Andreas Nedbal
176a79c0df
Fix bootstrap helper specs
2023-01-05 10:35:52 +01:00
Karina Kwiatek
63436d3464
Remove `ios_web_app?` helper
2022-12-04 23:11:59 +01:00
Andreas Nedbal
6693864fbc
Move `belongs_to_current_user?` to UserController
2022-08-20 17:21:47 +02:00
Andreas Nedbal
87c2ed3ab7
List direct questions for current users or mods
2022-08-20 17:21:47 +02:00
Karina Kwiatek
afa1a102d6
Prevent Twitter markdown from stripping `<///3`
2022-07-30 19:41:47 +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
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
Georg Gadinger
61cea34f5e
replace Timecop with ActiveSupport::Testing::TimeHelpers
...
resolves #525
2022-07-19 17:18:27 +02:00
Karina Kwiatek
bd5ec792b7
Prevent text in links from being double-escaped
2022-07-16 15:57:32 +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
0196a9ea10
Test title helpers for custom anon display names
2022-06-23 21:29:27 +02: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
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
9c84f946ff
Fix test failing under macOS
2022-01-13 21:42:06 +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
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
Andreas Nedbal
0a530bfd63
Add test cases for invalid URIs in Markdown
2022-01-02 19:31:58 +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
5eb297136b
Add tests for `MarkdownHelper`
2021-12-31 22:40:38 +01:00
Andreas Nedbal
51bb2ae425
Add tests for new answer page theme logic
2021-12-30 02:03:34 +01:00