Sha256: 1bcbc2cdbf629c94f7d394b32ea5ff267e566ca995dba7bdc6c981f41669b4eb

Contents?: true

Size: 554 Bytes

Versions: 18

Compression:

Stored size: 554 Bytes

Contents

require "spec_helper"

describe "px-to-rem" do
  before(:all) do
    ParserSupport.parse_file("functions/px-to-rem")
  end

  context "called with unitless integer" do
    it "outputs rems" do
      expect(".unitless").to have_rule("font-size: 0.75rem")
    end
  end

  context "called with px" do
    it "outputs rems" do
      expect(".px").to have_rule("font-size: 1rem")
    end
  end

  context "called with px with modified base" do
    it "outputs rems" do
      expect(".px-with-modified-base").to have_rule("font-size: 1rem")
    end
  end
end

Version data entries

18 entries across 18 versions & 3 rubygems

Version Path
bourbon-4.3.4 spec/bourbon/functions/px_to_rem_spec.rb
bourbon-4.3.3 spec/bourbon/functions/px_to_rem_spec.rb
bourbon-4.3.2 spec/bourbon/functions/px_to_rem_spec.rb
bourbon-4.3.1 spec/bourbon/functions/px_to_rem_spec.rb
bourbon-4.3.0 spec/bourbon/functions/px_to_rem_spec.rb
bourbon-4.2.7 spec/bourbon/functions/px_to_rem_spec.rb
styler-sass-0.1.8.alpha spec/bourbon/functions/px_to_rem_spec.rb
styler-sass-0.1.7 spec/bourbon/functions/px_to_rem_spec.rb
styler-sass-0.1.7.alpha spec/bourbon/functions/px_to_rem_spec.rb
styler-sass-0.1.5.alpha spec/bourbon/functions/px_to_rem_spec.rb
bourbon-4.2.6 spec/bourbon/functions/px_to_rem_spec.rb
bourbon-4.2.5 spec/bourbon/functions/px_to_rem_spec.rb
bourbon-4.2.4 spec/bourbon/functions/px_to_rem_spec.rb
solidus_backend-1.0.0.pre3 vendor/bundle/gems/bourbon-4.2.3/spec/bourbon/functions/px_to_rem_spec.rb
solidus_backend-1.0.0.pre2 vendor/bundle/gems/bourbon-4.2.3/spec/bourbon/functions/px_to_rem_spec.rb
bourbon-4.2.3 spec/bourbon/functions/px_to_rem_spec.rb
bourbon-4.2.2 spec/bourbon/functions/px_to_rem_spec.rb
bourbon-4.2.1 spec/bourbon/functions/px_to_rem_spec.rb