spec/bourbon/library/font_face_spec_1.rb
raw| 1 | require "spec_helper" |
| 2 | |
| 3 | describe "font-face" do |
| 4 | before(:all) do |
| 5 | ParserSupport.parse_file("library/font-face-1") |
| 6 | end |
| 7 | |
| 8 | context "called with defaults" do |
| 9 | it "outputs defaults" do |
| 10 | ruleset = 'font-family: "source-sans-pro"; ' + |
| 11 | 'src: url("/fonts/source-sans-pro/source-sans-pro-regular.woff2") format("woff2"), url("/fonts/source-sans-pro/source-sans-pro-regular.woff") format("woff");' |
| 12 | |
| 13 | expect("@font-face").to have_ruleset(ruleset) |
| 14 | end |
| 15 | end |
| 16 | end |