fixed problem with path and ree/1.8.7 in test case
This commit is contained in:
parent
3d4ddca76a
commit
5cd4136676
@ -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)
|
||||||
|
@ -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
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user