File: compass_util_test.rb

package info (click to toggle)
ruby-compass 1.0.1~dfsg-3
  • links: PTS, VCS
  • area: main
  • in suites: jessie, jessie-kfreebsd
  • size: 8,152 kB
  • ctags: 1,795
  • sloc: ruby: 12,901; makefile: 127; perl: 43; xml: 14; sh: 4
file content (11 lines) | stat: -rw-r--r-- 276 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
require 'test_helper'

class CompassUtilTest < Test::Unit::TestCase
  def test_warn
    $stderr, old_err = StringIO.new, $stderr
    Compass::Util.compass_warn("this is a warning")
    assert_match(/this is a warning/, $stderr.string)
  ensure
    $stderr = old_err
  end
end