fixed problem with path and ree/1.8.7 in test case

This commit is contained in:
Scott Davis 2012-01-31 11:29:39 -05:00
parent 3d4ddca76a
commit 5cd4136676
2 changed files with 3 additions and 3 deletions

View File

@ -46,8 +46,8 @@ module SpriteHelper
URI = "selectors/*.png" URI = "selectors/*.png"
def init_sprite_helper def init_sprite_helper
@images_src_path = File.join(File.dirname(__FILE__), 'fixtures', 'sprites', 'public', 'images') @images_src_path = File.join(File.expand_path('../', __FILE__), 'fixtures', 'sprites', 'public', 'images')
@images_tmp_path = File.join(File.dirname(__FILE__), 'fixtures', 'sprites', 'public', 'images-tmp') @images_tmp_path = File.join(File.expand_path('../', __FILE__), 'fixtures', 'sprites', 'public', 'images-tmp')
end end
def sprite_map_test(options, uri = URI) def sprite_map_test(options, uri = URI)

View File

@ -19,7 +19,7 @@ class SpriteCommandTest < Test::Unit::TestCase
def config_data def config_data
return <<-CONFIG return <<-CONFIG
images_path = #{@images_tmp_path.inspect} images_path = "#{@images_tmp_path}"
CONFIG CONFIG
end end