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
Karina Kwiatek
b438c89256
Fix broken tests
2021-12-28 15:11:41 +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
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
00496a1596
Update remaining references to profile fields
2021-12-22 00:03:19 +01:00
Karina Kwiatek
f65875ae7e
Add specs for theme-color helpers
2021-08-13 01:45:00 +02:00
Karina Kwiatek
bd5995ef65
Add specs for `nav_entry` helper
2021-08-13 00:53:11 +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
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