Sha256: f589746efc3044f4fb976be489828d1b59c69f6aa717e295b8f5e657e6f918ab

Contents?: true

Size: 1.04 KB

Versions: 28

Compression:

Stored size: 1.04 KB

Contents

require 'test_helper'
require 'compass'
require 'compass/exec'
require 'stringio'

class RegressionsTest < Test::Unit::TestCase
  include SpriteHelper
  include Compass::CommandLineHelper

  def setup
    create_sprite_temp
    Compass.reset_configuration!
  end
  
  def teardown
    clean_up_sprites
    Compass.reset_configuration!
  end

  def test_issue911_sprites_with_globbing_and_line_comments
    within_tmp_directory do
      compass "create --bare issue911"
      FileUtils.mkdir_p "issue911/images/sprites/a"
      FileUtils.mkdir_p "issue911/images/sprites/b"
      FileUtils.cp File.join(@images_tmp_path, 'nested/squares/ten-by-ten.png'), "issue911/images/sprites/a/foo.png"
      FileUtils.cp File.join(@images_tmp_path, 'nested/squares/ten-by-ten.png'), "issue911/images/sprites/a/bar.png"
      Dir.chdir "issue911" do
        result = compile_for_project(<<-SCSS)
          @import "sprites/**/*.png";
        SCSS
        Sass::Engine.new(result, :syntax => :scss).render # raises an error if we generated invalid css
      end
    end
  end
end

Version data entries

28 entries across 28 versions & 2 rubygems

Version Path
arcabouco-0.2.13 vendor/bundle/gems/compass-1.0.3/test/units/regressions_test.rb
compass-1.0.3 test/units/regressions_test.rb
compass-1.1.0.alpha.3 test/units/regressions_test.rb
compass-1.1.0.alpha.2 test/units/regressions_test.rb
compass-1.1.0.alpha.1 test/units/regressions_test.rb
compass-1.1.0.alpha.0 test/units/regressions_test.rb
compass-1.0.1 test/units/regressions_test.rb
compass-1.0.0 test/units/regressions_test.rb
compass-1.0.0.rc.1 test/units/regressions_test.rb
compass-1.0.0.rc.0 test/units/regressions_test.rb
compass-1.0.0.alpha.21 test/units/regressions_test.rb
compass-1.0.0.alpha.20 test/units/regressions_test.rb
compass-1.0.0.alpha.19 test/units/regressions_test.rb
compass-1.0.0.alpha.18 test/units/regressions_test.rb
compass-1.0.0.alpha.17 test/units/regressions_test.rb
compass-1.0.0.alpha.16 test/units/regressions_test.rb
compass-1.0.0.alpha.15 test/units/regressions_test.rb
compass-1.0.0.alpha.14 test/units/regressions_test.rb
compass-1.0.0.alpha.13 test/units/regressions_test.rb
compass-0.13.alpha.12 test/units/regressions_test.rb