Testing for undefined constant error.
git-svn-id: svn://hamptoncatlin.com/haml/trunk@250 7063305b-7217-0410-af8c-cdc13e5119b9
This commit is contained in:
parent
27dffd695a
commit
b81a91672d
|
@ -36,7 +36,7 @@ class SassPluginTest < Test::Unit::TestCase
|
|||
|
||||
def test_exception_handling
|
||||
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
|
||||
File.delete(tempfile_loc('bork'))
|
||||
Sass.const_set('RAILS_ENV', 'production')
|
||||
|
|
|
@ -1,2 +1,2 @@
|
|||
{bork now!}
|
||||
This template isn't actually Sass. It's designed to make the interpreter choke, to test the exception-handling code.
|
||||
bork
|
||||
:bork= !bork
|
||||
|
|
Loading…
Reference in New Issue