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
|
2011-12-29 22:04:39 -05:00
|
|
|
Given the Server is running at "coffeescript-app"
|
2010-09-06 13:59:51 -04:00
|
|
|
When I go to "/javascripts/coffee_test.js"
|
2012-04-12 14:16:24 -04:00
|
|
|
Then I should see ".slice"
|
2011-05-22 11:27:39 -04:00
|
|
|
|
|
|
|
Scenario: Rendering coffee-script with :coffeescript haml-filter
|
2011-12-29 22:04:39 -05:00
|
|
|
Given the Server is running at "coffeescript-app"
|
2011-05-22 11:27:39 -04:00
|
|
|
When I go to "/inline-coffeescript.html"
|
2012-04-12 14:16:24 -04:00
|
|
|
Then I should see ".slice"
|
2011-07-24 00:10:19 -04:00
|
|
|
|
|
|
|
Scenario: Rendering broken coffee
|
2011-12-29 22:04:39 -05:00
|
|
|
Given the Server is running at "coffeescript-app"
|
2011-07-24 00:10:19 -04:00
|
|
|
When I go to "/javascripts/broken-coffee.js"
|
2012-07-25 14:21:07 -04:00
|
|
|
Then I should see "reserved word"
|
|
|
|
|
|
|
|
Scenario: Building broken coffee
|
|
|
|
Given a built app at "coffeescript-app"
|
|
|
|
Then the output should contain "error build/javascripts/broken-coffee.js"
|
|
|
|
And the exit status should be 1
|