Sha256: 5bda22b2eadb52fa5c0ee186659b9634a7b42f9fe8d24135b929f33aeba77dcd

Contents?: true

Size: 670 Bytes

Versions: 29

Compression:

Stored size: 670 Bytes

Contents

describe "Fortitude unparsed tag types", :type => :system do
  it "should not escape data inside a <script> tag" do
    expect(render(widget_class_with_content { script "foo < bar > baz & quux" })).to eq(
      %{<script>foo < bar > baz & quux</script>})
  end

  it "should not escape data inside a javascript call" do
    expect(render(widget_class_with_content { javascript "foo < bar > baz & quux" })).to eq(
      %{<script>foo < bar > baz & quux</script>})
  end

  it "should not escape data inside a <style> tag" do
    expect(render(widget_class_with_content { style "foo < bar > baz & quux" })).to eq(
      %{<style>foo < bar > baz & quux</style>})
  end
end

Version data entries

29 entries across 29 versions & 1 rubygems

Version Path
fortitude-0.9.6-java spec/system/unparsed_data_system_spec.rb
fortitude-0.9.6 spec/system/unparsed_data_system_spec.rb
fortitude-0.9.5-java spec/system/unparsed_data_system_spec.rb
fortitude-0.9.5 spec/system/unparsed_data_system_spec.rb
fortitude-0.9.4-java spec/system/unparsed_data_system_spec.rb
fortitude-0.9.4 spec/system/unparsed_data_system_spec.rb
fortitude-0.9.3-java spec/system/unparsed_data_system_spec.rb
fortitude-0.9.3 spec/system/unparsed_data_system_spec.rb
fortitude-0.9.2-java spec/system/unparsed_data_system_spec.rb
fortitude-0.9.2 spec/system/unparsed_data_system_spec.rb
fortitude-0.9.1-java spec/system/unparsed_data_system_spec.rb
fortitude-0.9.1 spec/system/unparsed_data_system_spec.rb
fortitude-0.9.0-java spec/system/unparsed_data_system_spec.rb
fortitude-0.9.0 spec/system/unparsed_data_system_spec.rb
fortitude-0.0.10-java spec/system/unparsed_data_system_spec.rb
fortitude-0.0.10 spec/system/unparsed_data_system_spec.rb
fortitude-0.0.9-java spec/system/unparsed_data_system_spec.rb
fortitude-0.0.9 spec/system/unparsed_data_system_spec.rb
fortitude-0.0.7-java spec/system/unparsed_data_system_spec.rb
fortitude-0.0.7 spec/system/unparsed_data_system_spec.rb