test/unit/font_importer_test.rb in compass-fontcustom-1.1.0 vs test/unit/font_importer_test.rb in compass-fontcustom-1.2.0
- old
+ new
@@ -68,10 +68,12 @@
assert File.exists? File.join(Compass.configuration.fonts_path, 'myfont.woff')
assert css =~ %r{.#{fontname}-font}, "base font class missing"
assert css =~ %r{.icon-#{fontname}-c}i, "icon c css class missing"
assert css =~ %r{.icon-#{fontname}-d}i, "icon d css class missing"
+ assert css =~ %r{.icon-#{fontname}-a_R3ally-eXotic-f1Le-Name}i, "exotic name css class missing"
+ assert css =~ %r{.icon-#{fontname}-google}i, "google icon css class missing"
end
def test_glyph_mixin
fontname = 'myfont'
@@ -80,15 +82,15 @@
css = render <<-SCSS
@import "#{fontname}/*.svg";
@include fontcustom-font-face($myfont-glyphs);
.custom-class-name {
- @include myfont-glyph(C);
+ @include myfont-glyph('a_R3ally-eXotic f1Le Name');
}
SCSS
assert css =~ %r{.#{fontname}-font, .custom-class-name}, "extending base class missing"
assert css =~ %r{@font-face}, "font-face definition missing"
- assert css =~ %r{.custom-class-name:before}, "cusom class missing missing"
+ assert css =~ %r{.custom-class-name:before}, "custom class missing missing"
end
end