mirror of
https://github.com/discourse/discourse.git
synced 2025-02-20 13:49:29 +08:00
DEV: more accurate spec for email iframe handling
This commit is contained in:
parent
8698a10920
commit
230e111e87
|
@ -108,7 +108,7 @@ describe Email::Styles do
|
|||
end
|
||||
|
||||
it "prefers data-original-href attribute to get iframe link" do
|
||||
original_url = "https://vimeo.com/329875646"
|
||||
original_url = "https://vimeo.com/329875646/85f1546a42"
|
||||
iframe_url = "https://player.vimeo.com/video/329875646"
|
||||
frag = html_fragment("<iframe src=\"#{iframe_url}\" data-original-href=\"#{original_url}\"></iframe>")
|
||||
expect(frag.at('iframe')).to be_blank
|
||||
|
|
Loading…
Reference in New Issue
Block a user