Sha256: d04004eebcf7fa0e59a3009b7133d5786fbc2fe1d3a294e5bf4772af344e4185
Contents?: true
Size: 764 Bytes
Versions: 5
Compression:
Stored size: 764 Bytes
Contents
require "test_helper" class DummyIntegrationTest < ActionDispatch::IntegrationTest def test_svg_helper_and_sheet visit("/") assert page.has_css?("svg symbol#hejsna") assert page.has_css?("svg.hejsna") end def test_prefix Scavenger::Config.class_prefix = "icon-" visit("/") assert page.has_selector?("svg.icon-hejsna") Scavenger::Config.class_prefix = nil end def test_default_aspect_ratio visit("/") assert page.has_css?("#hejsna[preserveaspectratio='xMinYMin meet']") end def test_configured_aspect_ratio Scavenger::Config.aspect_ratio = "xMaxYMax meet" visit("/") assert page.has_css?("#hejsna[preserveaspectratio='xMaxYMax meet']") Scavenger::Config.aspect_ratio = "xMinYMin meet" end end
Version data entries
5 entries across 5 versions & 1 rubygems