Permalink
Browse files

test class methods

  • Loading branch information...
1 parent e6cfbb5 commit 8b9913d6026ed8f5c10afad6fb969511d6133bd8 @rcarver rcarver committed May 18, 2010
Showing with 15 additions and 2 deletions.
  1. +2 −2 lib/fontvariationdescription.rb
  2. +13 −0 test/font_variation_description_test.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)
@@ -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

0 comments on commit 8b9913d

Please sign in to comment.