Sha256: 4b4d88837d2c2ecf86a3e3cfccaeaea1dd03318d259b64ba8607adeadb5188f4

Contents?: true

Size: 1.87 KB

Versions: 6

Compression:

Stored size: 1.87 KB

Contents

require "spec_helper"

describe "font-stacks" do
  before(:all) do
    ParserSupport.parse_file("library/font-stacks")
  end

  context "stacks used in variable" do
    it "output stacks" do
      helvetica = '"Helvetica Neue", "Helvetica", "Arial", sans-serif'
      lucida_grande = '"Lucida Grande", "Lucida Sans Unicode", ' +
                      '"Geneva", "Verdana", sans-serif'
      verdana = '"Verdana", "Geneva", sans-serif'
      garamond = '"Garamond", "Baskerville", "Baskerville Old Face", ' +
                 '"Hoefler Text", "Times New Roman", serif'
      georgia = '"Georgia", "Times", "Times New Roman", serif'
      hoefler_text = '"Hoefler Text", "Baskerville Old Face", ' +
                     '"Garamond", "Times New Roman", serif'
      consolas = '"Consolas", "monaco", monospace'
      courier_new = '"Courier New", "Courier", "Lucida Sans Typewriter", ' +
                    '"Lucida Typewriter", monospace'
      monaco = '"Monaco", "Consolas", "Lucida Console", monospace'

      system = 'system-ui, -apple-system, BlinkMacSystemFont, "Avenir Next", ' +
               '"Avenir", "Segoe UI", "Lucida Grande", "Helvetica Neue", ' +
               '"Helvetica", "Fira Sans", "Roboto", "Noto", "Droid Sans", ' +
               '"Cantarell", "Oxygen", "Ubuntu", "Franklin Gothic Medium", ' +
               '"Century Gothic", "Liberation Sans", sans-serif'

      expect(".helvetica").to have_value(helvetica)
      expect(".lucida-grande").to have_value(lucida_grande)
      expect(".verdana").to have_value(verdana)
      expect(".garamond").to have_value(garamond)
      expect(".georgia").to have_value(georgia)
      expect(".hoefler-text").to have_value(hoefler_text)
      expect(".consolas").to have_value(consolas)
      expect(".courier-new").to have_value(courier_new)
      expect(".monaco").to have_value(monaco)
      expect(".system").to have_value(system)
    end
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
bourbon-7.3.0 spec/bourbon/library/font_stacks_spec.rb
bourbon-7.2.0 spec/bourbon/library/font_stacks_spec.rb
bourbon-7.1.0 spec/bourbon/library/font_stacks_spec.rb
bourbon-7.0.0 spec/bourbon/library/font_stacks_spec.rb
bourbon-6.0.0 spec/bourbon/library/font_stacks_spec.rb
bourbon-5.1.0 spec/bourbon/library/font_stacks_spec.rb