merge
This commit is contained in:
parent
f031d868d1
commit
a5e27952f8
@ -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)
|
||||||
|
@ -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
|
Loading…
Reference in New Issue
Block a user