Testing for undefined constant error.

git-svn-id: svn://hamptoncatlin.com/haml/trunk@250 7063305b-7217-0410-af8c-cdc13e5119b9
This commit is contained in:
nex3 2006-12-23 09:45:05 +00:00
parent 27dffd695a
commit b81a91672d
2 changed files with 3 additions and 3 deletions

View File

@ -36,7 +36,7 @@ class SassPluginTest < Test::Unit::TestCase
def test_exception_handling def test_exception_handling
File.open(tempfile_loc('bork')) do |file| File.open(tempfile_loc('bork')) do |file|
assert file.gets == "bork bork bork!\n" assert file.gets + file.gets == "Undefined constant:\n!bork\n"
end end
File.delete(tempfile_loc('bork')) File.delete(tempfile_loc('bork'))
Sass.const_set('RAILS_ENV', 'production') Sass.const_set('RAILS_ENV', 'production')

View File

@ -1,2 +1,2 @@
{bork now!} bork
This template isn't actually Sass. It's designed to make the interpreter choke, to test the exception-handling code. :bork= !bork