Sha256: 103f70da1cdd02b25c8f048db7bafba956e621a352ea4e5f1418ee553e773fd0
Contents?: true
Size: 1.16 KB
Versions: 5
Compression:
Stored size: 1.16 KB
Contents
require "spec_helper" describe "@include omega()" do before(:all) do ParserSupport.parse_file("omega") end context "with no argument" do it "removes right margin" do expect(".omega-default").to have_rule("margin-right: 0") end end context "with argument (4n)" do it "removes right margin of nth-child(4n)" do expect(".omega-nth-default:nth-child(4n)").to have_rule("margin-right: 0") end it "adds clear to nth-child(4n+1)" do expect(".omega-nth-default:nth-child(4n+1)").to have_rule("clear: left") end end context "with argument ('4n+1')" do it "removes right margin of nth-child(4n+1)" do expect(".omega-complex-nth:nth-child(4n+1)").to have_rule("margin-right: 0") end end context "when called inside an RTL row" do context "with no argument" do it "removes left margin" do expect("section .omega-default-left").to have_rule("margin-left: 0") end end context "with argument (4n block)" do it "removes left margin of nth-child(4n)" do expect("section .omega-nth-default-left:nth-child(4n)").to have_rule("margin-left: 0") end end end end
Version data entries
5 entries across 5 versions & 1 rubygems
Version | Path |
---|---|
neat-1.8.0 | spec/neat/omega_spec.rb |
neat-1.7.4 | spec/neat/omega_spec.rb |
neat-1.7.3 | spec/neat/omega_spec.rb |
neat-1.7.2 | spec/neat/omega_spec.rb |
neat-1.7.1 | spec/neat/omega_spec.rb |