Sha256: ec1a1870f7e8453a14507194dbb4ed66f760cfff848fc7257b3c7b27b8a9c738
Contents?: true
Size: 1.16 KB
Versions: 12
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
12 entries across 12 versions & 2 rubygems