Sha256: ed01207daa9e485d8260316cd7b45edfbe1357597b565dafa6d9fb5e0c3dee8d
Contents?: true
Size: 1005 Bytes
Versions: 6
Compression:
Stored size: 1005 Bytes
Contents
require "spec_helper" describe "hide-visually" do before(:all) do ParserSupport.parse_file("library/hide-visually") end context "called on element" do it "adds properties to hide the element" do ruleset = "border: 0; " + "clip: rect(1px, 1px, 1px, 1px); " + "clip-path: circle(1% at 1% 1%); " + "height: 1px; " + "overflow: hidden; " + "padding: 0; " + "position: absolute; " + "width: 1px;" expect(".hide-visually").to have_ruleset(ruleset) end end context "called with unhide argument" do it "adds properties to reverse the hiding of the element" do ruleset = "clip: auto; " + "clip-path: none; " + "height: auto; " + "overflow: visible; " + "position: static; " + "width: auto;" expect(".hide-visually--unhide").to have_ruleset(ruleset) end end end
Version data entries
6 entries across 6 versions & 2 rubygems