Make the tests pass in ruby 1.9

This commit is contained in:
Chris Eppstein 2009-11-19 02:26:35 -08:00
parent bad615ef09
commit bdd1e2de33
6 changed files with 10 additions and 9 deletions

View File

@ -25,6 +25,7 @@ require 'fileutils'
Rake::TestTask.new :run_tests do |t| Rake::TestTask.new :run_tests do |t|
t.libs << 'lib' t.libs << 'lib'
t.libs << 'test'
t.libs << 'haml/lib' if ENV["RUN_CODE_RUN"] t.libs << 'haml/lib' if ENV["RUN_CODE_RUN"]
test_files = FileList['test/**/*_test.rb'] test_files = FileList['test/**/*_test.rb']
test_files.exclude('test/rails/*', 'test/haml/*') test_files.exclude('test/rails/*', 'test/haml/*')

View File

@ -1,4 +1,4 @@
require File.dirname(__FILE__)+'/test_helper' require 'test_helper'
require 'fileutils' require 'fileutils'
require 'compass' require 'compass'
require 'compass/exec' require 'compass/exec'
@ -64,4 +64,4 @@ class CommandLineTest < Test::Unit::TestCase
end end
end end
end end

View File

@ -1,4 +1,4 @@
require File.dirname(__FILE__)+'/test_helper' require 'test_helper'
require 'fileutils' require 'fileutils'
require 'compass' require 'compass'
@ -129,4 +129,4 @@ private
File.join(project_path(project_name), "saved") File.join(project_path(project_name), "saved")
end end
end end

View File

@ -1,4 +1,4 @@
require File.dirname(__FILE__)+'/test_helper' require 'test_helper'
require 'compass' require 'compass'
require 'stringio' require 'stringio'
@ -120,4 +120,4 @@ EXPECTED
assert_equal expected_serialization, Compass.configuration.serialize assert_equal expected_serialization, Compass.configuration.serialize
end end
end end

View File

@ -1,4 +1,4 @@
require File.join(File.dirname(__FILE__),'test_helper') require 'test_helper'
require 'fileutils' require 'fileutils'
require 'compass' require 'compass'
require 'compass/exec' require 'compass/exec'

View File

@ -1,4 +1,4 @@
require File.dirname(__FILE__)+'/test_helper' require 'test_helper'
class SassExtensionsTest < Test::Unit::TestCase class SassExtensionsTest < Test::Unit::TestCase
def test_simple def test_simple
@ -28,4 +28,4 @@ protected
options = arguments.last.is_a?(Hash) ? arguments.pop : Hash.new options = arguments.last.is_a?(Hash) ? arguments.pop : Hash.new
evaluation_content(options).nest(*arguments.map{|a| Sass::Script::String.new(a)}).to_s evaluation_content(options).nest(*arguments.map{|a| Sass::Script::String.new(a)}).to_s
end end
end end