2010-09-06 10:59:51 -07:00
|
|
|
Feature: Support coffee-script
|
|
|
|
In order to offer an alternative when writing Javascript
|
2011-05-22 17:27:39 +02:00
|
|
|
|
2010-09-06 10:59:51 -07:00
|
|
|
Scenario: Rendering coffee script
|
2011-12-29 19:04:39 -08:00
|
|
|
Given the Server is running at "coffeescript-app"
|
2010-09-06 10:59:51 -07:00
|
|
|
When I go to "/javascripts/coffee_test.js"
|
2011-05-22 17:27:39 +02:00
|
|
|
Then I should see "Array.prototype.slice"
|
|
|
|
|
|
|
|
Scenario: Rendering coffee-script with :coffeescript haml-filter
|
2011-12-29 19:04:39 -08:00
|
|
|
Given the Server is running at "coffeescript-app"
|
2011-05-22 17:27:39 +02:00
|
|
|
When I go to "/inline-coffeescript.html"
|
2011-07-23 21:10:19 -07:00
|
|
|
Then I should see "Array.prototype.slice"
|
|
|
|
|
|
|
|
Scenario: Rendering broken coffee
|
2011-12-29 19:04:39 -08:00
|
|
|
Given the Server is running at "coffeescript-app"
|
2011-07-23 21:10:19 -07:00
|
|
|
When I go to "/javascripts/broken-coffee.js"
|
2011-12-20 17:15:26 -08:00
|
|
|
Then I should see "Error"
|