mirror of
https://github.com/discourse/discourse.git
synced 2025-09-06 10:50:21 +08:00
DEV: Prefer <<~
over <<
.
This commit is contained in:
parent
0f1afad6da
commit
bbf542da01
1 changed files with 9 additions and 9 deletions
|
@ -33,15 +33,15 @@ describe ThemeField do
|
||||||
end
|
end
|
||||||
|
|
||||||
it 'only extracts inline javascript to an external file' do
|
it 'only extracts inline javascript to an external file' do
|
||||||
html = <<HTML
|
html = <<~HTML
|
||||||
<script type="text/discourse-plugin" version="0.8">
|
<script type="text/discourse-plugin" version="0.8">
|
||||||
var a = "inline discourse plugin";
|
var a = "inline discourse plugin";
|
||||||
</script>
|
</script>
|
||||||
<script>
|
<script>
|
||||||
var b = "inline raw script";
|
var b = "inline raw script";
|
||||||
</script>
|
</script>
|
||||||
<script src="/external-script.js"></script>
|
<script src="/external-script.js"></script>
|
||||||
HTML
|
HTML
|
||||||
|
|
||||||
theme_field = ThemeField.create!(theme_id: 1, target_id: 0, name: "header", value: html)
|
theme_field = ThemeField.create!(theme_id: 1, target_id: 0, name: "header", value: html)
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue