!RBIX 9595534255132031488 x M 1 n n x 10 __script__ i 44 5 7 0 64 47 49 1 1 15 99 7 2 45 3 4 43 5 43 6 65 49 7 3 13 99 12 7 8 12 7 9 12 65 12 49 10 4 15 49 8 0 15 2 11 I 6 I 0 I 0 I 0 n p 11 s 11 test_helper x 7 require x 12 ImageRowTest x 4 Test n x 4 Unit x 8 TestCase x 10 open_class x 14 __class_init__ M 1 n n x 12 ImageRowTest i 122 5 66 5 45 0 1 47 49 2 1 15 99 7 3 7 4 65 67 49 5 0 49 6 4 15 99 7 7 7 8 65 67 49 5 0 49 6 4 15 99 7 9 7 10 65 67 49 5 0 49 6 4 15 99 7 11 7 12 65 67 49 5 0 49 6 4 15 5 7 13 64 56 14 47 50 15 1 15 5 7 16 64 56 17 47 50 15 1 15 5 7 18 64 56 19 47 50 15 1 15 5 7 20 64 56 21 47 50 15 1 15 5 7 22 64 56 23 47 50 15 1 11 I 5 I 0 I 0 I 0 n p 24 x 12 SpriteHelper n x 7 include x 5 setup M 1 n n x 5 setup i 130 5 48 0 15 45 1 2 13 71 3 47 9 39 47 49 4 0 13 7 5 39 6 49 7 0 47 101 8 7 9 63 3 47 49 10 1 15 8 56 7 5 39 6 49 7 0 47 101 8 7 9 63 3 49 3 1 19 0 15 45 11 12 20 0 7 13 64 49 14 2 15 7 15 64 7 16 64 7 17 64 7 18 64 7 19 64 35 5 38 20 15 45 21 22 39 6 47 101 8 7 23 63 2 49 24 1 49 25 0 38 26 15 39 26 56 27 50 28 0 38 29 15 5 7 30 47 49 31 1 11 I 6 I 1 I 0 I 0 n p 32 x 18 create_sprite_temp x 8 StringIO n x 3 new x 8 allocate s 14 images_path = x 16 @images_src_path x 7 inspect x 4 to_s s 1 x 10 initialize x 7 Compass n s 13 sprite_config x 17 add_configuration s 9 large.png s 16 large_square.png s 10 medium.png s 8 tall.png s 9 small.png x 10 @filenames x 3 Dir n s 16 /image_row/*.png x 2 [] x 4 sort x 12 @image_files M 1 p 2 x 9 for_block t n x 5 setup i 73 57 19 0 15 20 0 39 0 47 101 1 7 2 63 2 7 3 64 49 4 2 15 45 5 6 43 7 43 8 43 9 13 71 10 47 9 59 47 49 11 0 13 1 20 0 44 43 12 78 49 13 1 47 49 14 3 15 8 72 1 20 0 44 43 12 78 49 13 1 49 10 3 11 I 8 I 1 I 1 I 1 n p 15 x 16 @images_src_path x 4 to_s s 1 / s 0 x 5 gsub! x 7 Compass n x 14 SassExtensions x 7 Sprites x 5 Image x 3 new x 8 allocate x 4 Hash x 16 new_from_literal x 10 initialize p 7 I 0 I b I 4 I c I 16 I d I 49 x 68 /Users/crispee/Projects/compass/test/units/sprites/image_row_test.rb p 1 x 3 img x 3 map x 7 @images I 3e8 x 9 image_row p 17 I -1 I 5 I 0 I 6 I 4 I 7 I 3b I 8 I 47 I 9 I 5b I a I 70 I b I 7a I f I 82 x 68 /Users/crispee/Projects/compass/test/units/sprites/image_row_test.rb p 1 x 4 file x 17 method_visibility x 15 add_defn_method x 8 teardown M 1 n n x 8 teardown i 4 5 48 0 11 I 1 I 0 I 0 I 0 n p 1 x 16 clean_up_sprites p 5 I -1 I 12 I 0 I 13 I 4 x 68 /Users/crispee/Projects/compass/test/units/sprites/image_row_test.rb p 0 x 9 image_row M 1 n n x 9 image_row i 37 45 0 1 43 2 43 3 43 4 13 71 5 47 9 29 47 49 6 0 13 20 0 47 49 7 1 15 8 34 20 0 49 5 1 38 8 11 I 4 I 1 I 1 I 1 n p 9 x 7 Compass n x 14 SassExtensions x 7 Sprites x 8 ImageRow x 3 new x 8 allocate x 10 initialize x 10 @image_row p 5 I -1 I 16 I 0 I 17 I 25 x 68 /Users/crispee/Projects/compass/test/units/sprites/image_row_test.rb p 1 x 3 max x 12 populate_row M 1 n n x 12 populate_row i 8 39 0 56 1 50 2 0 11 I 2 I 0 I 0 I 0 n p 3 x 7 @images M 1 p 2 x 9 for_block t n x 12 populate_row i 17 57 19 0 15 5 39 0 20 0 49 1 1 47 49 2 1 11 I 5 I 1 I 1 I 1 n p 3 x 10 @image_row x 3 add x 6 assert p 5 I 0 I 1b I 4 I 1c I 11 x 68 /Users/crispee/Projects/compass/test/units/sprites/image_row_test.rb p 1 x 5 image x 4 each p 5 I -1 I 1a I 0 I 1b I 8 x 68 /Users/crispee/Projects/compass/test/units/sprites/image_row_test.rb p 0 s 48 should return false if image will not fit in row M 1 p 2 x 9 for_block t n x 12 ImageRowTest i 100 5 4 100 47 49 0 1 15 45 1 2 43 3 43 4 43 5 13 71 6 47 9 55 47 49 7 0 13 1 45 8 9 7 10 64 7 11 64 49 12 2 44 43 13 78 49 14 1 47 49 15 3 15 8 78 1 45 8 16 7 10 64 7 11 64 49 12 2 44 43 13 78 49 14 1 49 6 3 19 0 15 5 39 17 20 0 49 18 1 10 94 2 8 95 3 47 49 19 1 11 I 8 I 1 I 0 I 0 I -2 p 20 x 9 image_row x 7 Compass n x 14 SassExtensions x 7 Sprites x 5 Image x 3 new x 8 allocate x 4 File n s 9 image_row s 9 large.png x 4 join x 4 Hash x 16 new_from_literal x 10 initialize n x 10 @image_row x 3 add x 6 assert p 7 I 0 I 21 I 8 I 22 I 51 I 23 I 64 x 68 /Users/crispee/Projects/compass/test/units/sprites/image_row_test.rb p 1 x 3 img x 2 it s 20 should have 5 images M 1 p 2 x 9 for_block t n x 12 ImageRowTest i 20 5 48 0 15 5 4 5 39 1 49 2 0 49 3 0 47 49 4 2 11 I 4 I 0 I 0 I 0 I -2 p 5 x 12 populate_row x 10 @image_row x 6 images x 4 size x 12 assert_equal p 5 I 0 I 27 I 4 I 28 I 14 x 68 /Users/crispee/Projects/compass/test/units/sprites/image_row_test.rb p 0 s 29 should return max image width M 1 p 2 x 9 for_block t n x 12 ImageRowTest i 17 5 48 0 15 5 7 1 39 2 49 3 0 47 49 4 2 11 I 4 I 0 I 0 I 0 I -2 p 5 x 12 populate_row I 190 x 10 @image_row x 5 width x 12 assert_equal p 5 I 0 I 2c I 4 I 2d I 11 x 68 /Users/crispee/Projects/compass/test/units/sprites/image_row_test.rb p 0 s 30 should return max image height M 1 p 2 x 9 for_block t n x 12 ImageRowTest i 17 5 48 0 15 5 4 40 39 1 49 2 0 47 49 3 2 11 I 4 I 0 I 0 I 0 I -2 p 4 x 12 populate_row x 10 @image_row x 6 height x 12 assert_equal p 5 I 0 I 31 I 4 I 32 I 11 x 68 /Users/crispee/Projects/compass/test/units/sprites/image_row_test.rb p 0 s 32 should have an efficiency rating M 1 p 2 x 9 for_block t n x 12 ImageRowTest i 25 5 48 0 15 5 79 7 1 7 2 49 3 1 82 4 39 5 49 6 0 47 49 7 2 11 I 5 I 0 I 0 I 0 I -2 p 8 x 12 populate_row d +0.566406250000000000000000000000000000000000000000000000 10 d +0.976562500000000000000000000000000000000000000000000000 10 x 1 / x 1 - x 10 @image_row x 10 efficiency x 12 assert_equal p 5 I 0 I 36 I 4 I 37 I 19 x 68 /Users/crispee/Projects/compass/test/units/sprites/image_row_test.rb p 0 p 21 I 2 I 4 I b I 5 I 19 I 12 I 27 I 16 I 35 I 1a I 43 I 20 I 4e I 26 I 59 I 2b I 64 I 30 I 6f I 35 I 7a x 68 /Users/crispee/Projects/compass/test/units/sprites/image_row_test.rb p 0 x 13 attach_method p 5 I 0 I 1 I 9 I 3 I 2c x 68 /Users/crispee/Projects/compass/test/units/sprites/image_row_test.rb p 0