Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

FIX: BBCode parsing specs #575

Merged
merged 1 commit into from
Jun 18, 2024
Merged

FIX: BBCode parsing specs #575

merged 1 commit into from
Jun 18, 2024

Conversation

ZogStriP
Copy link
Member

Requires discourse/discourse#27173 to be merged.

Will add a .discourse-compatibility once merged.

end

it "works with status attribute" do
post = create_post_with_event(user, 'status="private"').reload
expect(post.event.status).to eq(DiscoursePostEvent::Event.statuses[:private])

post = create_post_with_event(user, 'status=""').reload
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Removed these specs which aren't supported anymore.

end

it "works with url attribute" do
url = "https://www.discourse.org"

post = create_post_with_event(user, "url=\"#{url}\"").reload
expect(post.event.url).to eq(url)

post = create_post_with_event(user, 'url=""').reload
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Removed these specs which aren't supported anymore.

expect(post.event.raw_invitees).to match_array(%w[euro america])

post = create_post_with_event(user, 'status="private" allowedGroups=""').reload
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Removed these specs which aren't supported anymore.

expect(post.event.raw_invitees).to eq([])

post = create_post_with_event(user, 'status="private" allowedGroups=').reload
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Removed these specs which aren't supported anymore.

Requires discourse/discourse#27173 to be merged.

Will add a `.discourse-compatibility` once merged.
@ZogStriP ZogStriP merged commit 20a9fe4 into main Jun 18, 2024
5 checks passed
@ZogStriP ZogStriP deleted the fix-bbcode-specs branch June 18, 2024 09:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants