Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

test class methods

  • Loading branch information...
commit 8b9913d6026ed8f5c10afad6fb969511d6133bd8 1 parent e6cfbb5
@rcarver rcarver authored
View
4 lib/fontvariationdescription.rb
@@ -32,8 +32,8 @@ module FontVariationDescription
}
def self.compact(input)
- @compacter ||= Compacter.new
- @compacter.parse(input)
+ @compactor ||= Compactor.new
+ @compactor.parse(input)
end
def self.expand(input)
View
13 test/font_variation_description_test.rb
@@ -0,0 +1,13 @@
+require File.dirname(__FILE__) + '/test_helper'
+
+class FontVariationDescriptionTest < Test::Unit::TestCase
+
+ def test_compact
+ assert_equal 'i7', FontVariationDescription.compact('font-style:italic;font-weight:bold;')
+ end
+
+ def test_expand
+ assert_equal 'font-style:italic;font-weight:700;', FontVariationDescription.expand('i7')
+ end
+
+end
Please sign in to comment.
Something went wrong with that request. Please try again.