middleman/middleman-core/features/coffee-script.feature

22 lines
833 B
Gherkin
Raw Normal View History

Feature: Support coffee-script
In order to offer an alternative when writing Javascript
2011-05-22 17:27:39 +02:00
Scenario: Rendering coffee script
Given the Server is running at "coffeescript-app"
When I go to "/javascripts/coffee_test.js"
2012-04-12 20:16:24 +02:00
Then I should see ".slice"
2011-05-22 17:27:39 +02:00
Scenario: Rendering coffee-script with :coffeescript haml-filter
Given the Server is running at "coffeescript-app"
2011-05-22 17:27:39 +02:00
When I go to "/inline-coffeescript.html"
2012-04-12 20:16:24 +02:00
Then I should see ".slice"
Scenario: Rendering broken coffee
Given the Server is running at "coffeescript-app"
When I go to "/javascripts/broken-coffee.js"
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