Given this method calling to Compass::SpriteImporter.path_and_name
and patched to raise an exception
Compass::SassExtensions::Sprites::SpriteMap.class_eval do
def self.from_uri(uri, context, kwargs)
uri = uri.value
path, name = Compass::SpriteImporter.path_and_name(uri)
raise "Path: #{path} Name: #{name} URI: #{uri} CallReturn: #{Compass::SpriteImporter.path_and_name(uri)}"
files = Compass::SpriteImporter.files(uri)
sprites = files.map do |sprite|
relative_name(sprite)
end
new(sprites, path, name, context, kwargs)
end
end
Path: Name: URI: letters/*.png CallReturn: [nil, nil]
Path: letters Name: letters URI: letters/*.png CallReturn: ["letters", "letters"]