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"
def init_sprite_helper
@images_src_path = File.join(File.dirname(__FILE__), 'fixtures', 'sprites', 'public', 'images')
@images_tmp_path = File.join(File.dirname(__FILE__), 'fixtures', 'sprites', 'public', 'images-tmp')
@images_src_path = File.join(File.expand_path('../', __FILE__), 'fixtures', 'sprites', 'public', 'images')
@images_tmp_path = File.join(File.expand_path('../', __FILE__), 'fixtures', 'sprites', 'public', 'images-tmp')
end
def sprite_map_test(options, uri = URI)

View File

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