mirror of
https://github.com/haml/haml.git
synced 2022-11-09 12:33:31 -05:00
12 lines
407 B
Ruby
12 lines
407 B
Ruby
#!/usr/bin/env ruby
|
|
require File.dirname(__FILE__) + '/../test_helper'
|
|
require 'sass/engine'
|
|
|
|
class SassScriptTest < Test::Unit::TestCase
|
|
include Sass::Script
|
|
|
|
def test_color_checks_input
|
|
assert_raise(Sass::SyntaxError, "Color values must be between 0 and 255") {Color.new([1, 2, -1])}
|
|
assert_raise(Sass::SyntaxError, "Color values must be between 0 and 255") {Color.new([256, 2, 3])}
|
|
end
|
|
end
|