A platform for community discussion. Free, open, simple.
DEV: more accurate spec for email iframe handling
Arpit Jalan230e111e8756
diff --git a/spec/components/email/styles_spec.rb b/spec/components/email/styles_spec.rbindex 8e85d7bdc6e..d8597db6001 100644--- a/spec/components/email/styles_spec.rb+++ b/spec/components/email/styles_spec.rb@@ -108,7 +108,7 @@ describe Email::Styles doendit "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