Sha256: 8b82cc0d551b6394301f42114bfb254447c732eb5da12c894fdb838bd86dfb24

Contents?: true

Size: 1.7 KB

Versions: 6

Compression:

Stored size: 1.7 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, "Segoe UI", "Roboto", ' +
               '"Oxygen", "Ubuntu", "Cantarell", "Fira Sans", "Droid Sans", ' +
               '"Helvetica Neue", 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 & 2 rubygems

Version Path
doggystyle-0.1.0 spec/doggystyle/library/font_stacks_spec.rb
bourbon-5.0.0.beta.6 spec/bourbon/library/font_stacks_spec.rb
bourbon-5.0.0.beta.5 spec/bourbon/library/font_stacks_spec.rb
bourbon-5.0.0.beta.4 spec/bourbon/library/font_stacks_spec.rb
bourbon-5.0.0.beta.3 spec/bourbon/library/font_stacks_spec.rb
bourbon-5.0.0.beta.2 spec/bourbon/library/font_stacks_spec.rb