From b81a91672dbdf307d3cd6625ade9df8f4af984d3 Mon Sep 17 00:00:00 2001 From: nex3 Date: Sat, 23 Dec 2006 09:45:05 +0000 Subject: [PATCH] Testing for undefined constant error. git-svn-id: svn://hamptoncatlin.com/haml/trunk@250 7063305b-7217-0410-af8c-cdc13e5119b9 --- test/sass/plugin_test.rb | 2 +- test/sass/templates/bork.sass | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/test/sass/plugin_test.rb b/test/sass/plugin_test.rb index 026e395e..01294363 100644 --- a/test/sass/plugin_test.rb +++ b/test/sass/plugin_test.rb @@ -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') diff --git a/test/sass/templates/bork.sass b/test/sass/templates/bork.sass index bf2634e9..b0d9abea 100644 --- a/test/sass/templates/bork.sass +++ b/test/sass/templates/bork.sass @@ -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