This commit is contained in:
Scott Davis 2011-03-22 22:54:16 -04:00
parent f031d868d1
commit a5e27952f8
2 changed files with 30 additions and 1 deletions

View File

@ -7,7 +7,7 @@ Gem::Specification.new do |gemspec|
gemspec.date = "#{Time.now.year}-#{Time.now.month}-#{Time.now.day}" # Automatically update for each build gemspec.date = "#{Time.now.year}-#{Time.now.month}-#{Time.now.day}" # Automatically update for each build
gemspec.description = "Compass is a Sass-based Stylesheet Framework that streamlines the creation and maintainance of CSS." gemspec.description = "Compass is a Sass-based Stylesheet Framework that streamlines the creation and maintainance of CSS."
gemspec.homepage = "http://compass-style.org" gemspec.homepage = "http://compass-style.org"
gemspec.authors = ["Chris Eppstein", "Eric A. Meyer", "Brandon Mathis", "Nico Hagenburger"] gemspec.authors = ["Chris Eppstein", "Eric A. Meyer", "Brandon Mathis", "Nico Hagenburger", "Scott Davis"]
gemspec.email = "chris@eppsteins.net" gemspec.email = "chris@eppsteins.net"
gemspec.default_executable = "compass" gemspec.default_executable = "compass"
gemspec.executables = %w(compass) gemspec.executables = %w(compass)

View File

@ -0,0 +1,29 @@
require 'spec_helper'
describe Compass::SassExtensions::Sprites::Base do
before :each do
@images_src_path = File.join(File.dirname(__FILE__), '..', '..', '..', 'test_project', 'public', 'images')
@images_tmp_path = File.join(File.dirname(__FILE__), '..', '..', '..', 'test_project', 'public', 'selectors-images-tmp')
#FileUtils.mkdir_p @images_src_path
#FileUtils.mkdir_p @images_tmp_path
FileUtils.cp_r @images_src_path, @images_tmp_path
file = StringIO.new("images_path = #{@images_tmp_path.inspect}\n")
Compass.add_configuration(file, "sprite_config")
Compass.configure_sass_plugin!
rels = Dir["#{@images_src_path}/selectors/*.png"].sort.map { |f| f.split('/')[-2..-1].join('/') }
Compass::SassExtensions::Sprites::Base.new(rels, @images_src_path, 'selectors', self, options)
end
after :each do
FileUtils.rm_r @images_tmp_path
end
it "should" do
"foo"
end
end