From 5ca92e10f48ead231f87844b01f053893f65f023 Mon Sep 17 00:00:00 2001 From: Konstantin Haase Date: Fri, 24 Dec 2010 16:10:20 +0100 Subject: [PATCH] adjust tests for new version of coffescript --- test/coffee_test.rb | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/test/coffee_test.rb b/test/coffee_test.rb index f9677ae7..bf8b0a69 100644 --- a/test/coffee_test.rb +++ b/test/coffee_test.rb @@ -16,7 +16,7 @@ class CoffeeTest < Test::Unit::TestCase it 'renders inline Coffee strings' do coffee_app { coffee "alert 'Aye!'\n" } assert ok? - assert_equal "(function() {\n alert('Aye!');\n})();\n", body + assert_equal "(function() {\n alert('Aye!');\n}).call(this);\n", body end it 'defaults content type to javascript' do @@ -45,13 +45,13 @@ class CoffeeTest < Test::Unit::TestCase it 'renders .coffee files in views path' do coffee_app { coffee :hello } assert ok? - assert_equal "(function() {\n alert(\"Aye!\");\n})();\n", body + assert_equal "(function() {\n alert(\"Aye!\");\n}).call(this);\n", body end it 'ignores the layout option' do coffee_app { coffee :hello, :layout => :layout2 } assert ok? - assert_equal "(function() {\n alert(\"Aye!\");\n})();\n", body + assert_equal "(function() {\n alert(\"Aye!\");\n}).call(this);\n", body end it "raises error if template not found" do