2011-07-11 01:02:52 +02:00
|
|
|
Feature: Sprockets
|
|
|
|
|
|
|
|
Scenario: Sprockets require
|
2011-07-28 04:59:38 +02:00
|
|
|
Given the Server is running at "test-app"
|
2011-07-11 01:02:52 +02:00
|
|
|
When I go to "/javascripts/sprockets_base.js"
|
2011-08-09 20:12:20 +02:00
|
|
|
Then I should see "sprockets_sub_function"
|
|
|
|
|
|
|
|
Scenario: Sprockets require with custom :js_dir
|
|
|
|
Given the Server is running at "sprockets-app"
|
|
|
|
When I go to "/library/javascripts/sprockets_base.js"
|
2011-08-31 22:15:59 +02:00
|
|
|
Then I should see "sprockets_sub_function"
|
|
|
|
|
|
|
|
Scenario: Sprockets should have access to yaml data
|
|
|
|
Given the Server is running at "test-app"
|
|
|
|
When I go to "/javascripts/multiple_engines.js"
|
2011-08-31 22:27:29 +02:00
|
|
|
Then I should see "Hello One"
|
|
|
|
|
|
|
|
Scenario: Multiple engine files should build correctly
|
|
|
|
Given a built app at "test-app"
|
|
|
|
Then "javascripts/multiple_engines.js" should exist at "test-app" and include "Hello One"
|
|
|
|
And cleanup built app at "test-app"
|