| 1 |
require "spec_helper" |
| 2 |
|
| 3 |
describe "font-face" do |
| 4 |
before(:all) do |
| 5 |
ParserSupport.parse_file("library/font-face-5") |
| 6 |
end |
| 7 |
|
| 8 |
context "called with additional CSS rules" do |
| 9 |
it "outputs defaults with additional content" do |
| 10 |
ruleset = 'font-family: "calibre"; ' + |
| 11 |
'src: url("fonts/calibre.woff2") format("woff2"), ' + |
| 12 |
'url("fonts/calibre.woff") format("woff"); ' + |
| 13 |
"font-style: normal;" + |
| 14 |
"font-weight: 600;" + |
| 15 |
"unicode-range: U+26;" |
| 16 |
|
| 17 |
expect("@font-face").to have_ruleset(ruleset) |
| 18 |
end |
| 19 |
end |
| 20 |
end |