From b4a01788e293a5cf01a73ae2b5293f7b2e8188b0 Mon Sep 17 00:00:00 2001 From: Mo Morsi Date: Jun 16 2014 17:03:16 +0000 Subject: Update to sass 3.3.8, include patch for minitest 5 support --- diff --git a/Update-to-minitest5.patch b/Update-to-minitest5.patch new file mode 100644 index 0000000..49868dd --- /dev/null +++ b/Update-to-minitest5.patch @@ -0,0 +1,350 @@ +diff --git a/test/sass/cache_test.rb b/test/sass/cache_test.rb +index 90a8d2d..99d4a45 100755 +--- a/test/sass/cache_test.rb ++++ b/test/sass/cache_test.rb +@@ -3,7 +3,7 @@ require File.dirname(__FILE__) + '/../test_helper' + require File.dirname(__FILE__) + '/test_helper' + require 'sass/engine' + +-class CacheTest < Test::Unit::TestCase ++class CacheTest < MiniTest::Unit::TestCase + @@cache_dir = "tmp/file_cache" + + def setup +diff --git a/test/sass/callbacks_test.rb b/test/sass/callbacks_test.rb +index b0a2081..422959f 100755 +--- a/test/sass/callbacks_test.rb ++++ b/test/sass/callbacks_test.rb +@@ -26,7 +26,7 @@ module ClassLevelCallerBack + end + end + +-class SassCallbacksTest < Test::Unit::TestCase ++class SassCallbacksTest < MiniTest::Unit::TestCase + def test_simple_callback + cb = CallerBack.new + there = false +diff --git a/test/sass/compiler_test.rb b/test/sass/compiler_test.rb +index 9c8d1c8..e618f7a 100755 +--- a/test/sass/compiler_test.rb ++++ b/test/sass/compiler_test.rb +@@ -1,10 +1,10 @@ + #!/usr/bin/env ruby +-require 'test/unit' ++require 'minitest/autorun' + require File.dirname(__FILE__) + '/../test_helper' + require 'sass/plugin' + require 'sass/plugin/compiler' + +-class CompilerTest < Test::Unit::TestCase ++class CompilerTest < MiniTest::Unit::TestCase + class FakeListener + attr_accessor :options + attr_accessor :directories +diff --git a/test/sass/conversion_test.rb b/test/sass/conversion_test.rb +index 3e270b2..18f0eeb 100755 +--- a/test/sass/conversion_test.rb ++++ b/test/sass/conversion_test.rb +@@ -1,7 +1,7 @@ + #!/usr/bin/env ruby + require File.dirname(__FILE__) + '/../test_helper' + +-class ConversionTest < Test::Unit::TestCase ++class ConversionTest < MiniTest::Unit::TestCase + def test_basic + assert_renders < %{gem_name}.gemspec + +%patch0 -p1 + +%build + +gem build %{gem_name}.gemspec + +%gem_install pushd .%{gem_instdir} # Remove bundled rubygem-listener: @@ -46,7 +61,11 @@ pushd .%{gem_instdir} rm -rf vendor popd -%build +%check +pushd .%{gem_instdir} +export LANG=en_US.utf8 +ruby -Ilib:test -e 'Dir.glob "./test/**/*_test.rb"' +popd %install mkdir -p %{buildroot}%{gem_dir} @@ -57,11 +76,6 @@ cp -a .%{_bindir}/* %{buildroot}%{_bindir}/ find %{buildroot}%{gem_instdir}/bin -type f | xargs chmod a+x -%check -pushd .%{gem_instdir} -export LANG=en_US.utf8 -find -type f -name *_test.rb | xargs testrb -Itest -popd %files %dir %{gem_instdir} @@ -93,6 +107,10 @@ popd %changelog +* Thu Jun 12 2014 Mo Morsi - 3.3.8-1 +- Update to latest upstream release +- Include patch updating test suite to minitest 5 + * Sun Jun 08 2014 Fedora Release Engineering - 3.2.14-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild