diff --git a/features/coffee-script.feature b/features/coffee-script.feature index 4ed8dba0..62495577 100644 --- a/features/coffee-script.feature +++ b/features/coffee-script.feature @@ -9,4 +9,9 @@ Feature: Support coffee-script Scenario: Rendering coffee-script with :coffeescript haml-filter Given the Server is running When I go to "/inline-coffeescript.html" - Then I should see "Array.prototype.slice" \ No newline at end of file + Then I should see "Array.prototype.slice" + + Scenario: Rendering broken coffee + Given the Server is running + When I go to "/javascripts/broken-coffee.js" + Then I should see "Reserved word" \ No newline at end of file diff --git a/fixtures/test-app/source/javascripts/broken-coffee.js.coffee b/fixtures/test-app/source/javascripts/broken-coffee.js.coffee new file mode 100644 index 00000000..1af7bf2a --- /dev/null +++ b/fixtures/test-app/source/javascripts/broken-coffee.js.coffee @@ -0,0 +1,3 @@ +function test() { + hello +} \ No newline at end of file