Sha256: 1257063d08aadd66874de30f05beb83dd564cdd39866546f569555c53e8f5d5c

Contents?: true

Size: 1.86 KB

Versions: 4

Compression:

Stored size: 1.86 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 = '-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

4 entries across 4 versions & 1 rubygems

Version Path
bourbon-5.0.1 spec/bourbon/library/font_stacks_spec.rb
bourbon-5.0.0 spec/bourbon/library/font_stacks_spec.rb
bourbon-5.0.0.beta.8 spec/bourbon/library/font_stacks_spec.rb
bourbon-5.0.0.beta.7 spec/bourbon/library/font_stacks_spec.rb