Sha256: 33fe002a9b253a75ae99173433ac65c35828f414a2a585b7433dd756d7647dcc

Contents?: true

Size: 678 Bytes

Versions: 16

Compression:

Stored size: 678 Bytes

Contents

require "spec_helper"

describe "size" do
  before(:all) do
    ParserSupport.parse_file("library/size")
  end

  context "called with one size" do
    it "applies same width to both height and width" do
      rule = "height: 10px; width: 10px;"

      expect(".size-implicit").to have_ruleset(rule)
    end
  end

  context "called with two sizes" do
    it "applies to height and width" do
      rule = "height: 2em; width: 1em;"

      expect(".size-both").to have_ruleset(rule)
    end
  end

  context "called with auto" do
    it "applies to auto to height" do
      rule = "height: auto; width: 100px;"

      expect(".size-auto").to have_ruleset(rule)
    end
  end
end

Version data entries

16 entries across 16 versions & 2 rubygems

Version Path
bourbon-7.3.0 spec/bourbon/library/size_spec.rb
bourbon-7.2.0 spec/bourbon/library/size_spec.rb
bourbon-7.1.0 spec/bourbon/library/size_spec.rb
bourbon-7.0.0 spec/bourbon/library/size_spec.rb
bourbon-6.0.0 spec/bourbon/library/size_spec.rb
bourbon-5.1.0 spec/bourbon/library/size_spec.rb
bourbon-5.0.1 spec/bourbon/library/size_spec.rb
bourbon-5.0.0 spec/bourbon/library/size_spec.rb
bourbon-5.0.0.beta.8 spec/bourbon/library/size_spec.rb
bourbon-5.0.0.beta.7 spec/bourbon/library/size_spec.rb
doggystyle-0.1.0 spec/doggystyle/library/size_spec.rb
bourbon-5.0.0.beta.6 spec/bourbon/library/size_spec.rb
bourbon-5.0.0.beta.5 spec/bourbon/library/size_spec.rb
bourbon-5.0.0.beta.4 spec/bourbon/library/size_spec.rb
bourbon-5.0.0.beta.3 spec/bourbon/library/size_spec.rb
bourbon-5.0.0.beta.2 spec/bourbon/library/size_spec.rb