2010-09-06 13:59:51 -04:00
|
|
|
Feature: Support coffee-script
|
|
|
|
In order to offer an alternative when writing Javascript
|
2011-05-22 11:27:39 -04:00
|
|
|
|
2010-09-06 13:59:51 -04:00
|
|
|
Scenario: Rendering coffee script
|
|
|
|
Given the Server is running
|
|
|
|
When I go to "/javascripts/coffee_test.js"
|
2011-05-22 11:27:39 -04:00
|
|
|
Then I should see "Array.prototype.slice"
|
|
|
|
|
|
|
|
Scenario: Rendering coffee-script with :coffeescript haml-filter
|
|
|
|
Given the Server is running
|
|
|
|
When I go to "/inline-coffeescript.html"
|
2011-07-24 00:10:19 -04:00
|
|
|
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"
|