glyph_imager 0.0.7 → 0.0.8
Sign up to get free protection for your applications and to get access to all the features.
- data/VERSION +1 -1
- data/glyph_imager.gemspec +1 -1
- data/lib/glyph_imager.rb +1 -1
- data/test/test_glyph_imager.rb +5 -5
- metadata +2 -2
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.0.
|
1
|
+
0.0.8
|
data/glyph_imager.gemspec
CHANGED
data/lib/glyph_imager.rb
CHANGED
data/test/test_glyph_imager.rb
CHANGED
@@ -9,8 +9,8 @@ class TestGlyphImager < Test::Unit::TestCase
|
|
9
9
|
end
|
10
10
|
|
11
11
|
def teardown
|
12
|
-
if File.exists?("/tmp/0021.png")
|
13
|
-
File.delete("/tmp/0021.png")
|
12
|
+
if File.exists?("/tmp/0021-80x80.png")
|
13
|
+
File.delete("/tmp/0021-80x80.png")
|
14
14
|
end
|
15
15
|
end
|
16
16
|
|
@@ -39,7 +39,7 @@ class TestGlyphImager < Test::Unit::TestCase
|
|
39
39
|
:output_dir => "/tmp"
|
40
40
|
})
|
41
41
|
@imager.create_image
|
42
|
-
assert File.exists?("/tmp/0021.png")
|
42
|
+
assert File.exists?("/tmp/0021-80x80.png")
|
43
43
|
end
|
44
44
|
|
45
45
|
should "create new image for character supported by font" do
|
@@ -48,7 +48,7 @@ class TestGlyphImager < Test::Unit::TestCase
|
|
48
48
|
:font_path => @font_path,
|
49
49
|
:output_dir => "/tmp"
|
50
50
|
})
|
51
|
-
assert File.exists?("/tmp/0021.png")
|
51
|
+
assert File.exists?("/tmp/0021-80x80.png")
|
52
52
|
end
|
53
53
|
|
54
54
|
should "not create new image for character not supported by font" do
|
@@ -57,7 +57,7 @@ class TestGlyphImager < Test::Unit::TestCase
|
|
57
57
|
:font_path => @font_path,
|
58
58
|
:output_dir => "/tmp"
|
59
59
|
})
|
60
|
-
assert !File.exists?("/tmp/11B14.png")
|
60
|
+
assert !File.exists?("/tmp/11B14-80x80.png")
|
61
61
|
end
|
62
62
|
|
63
63
|
end
|