2011-07-10 16:02:52 -07:00
|
|
|
Feature: Sprockets
|
|
|
|
|
2011-10-19 16:21:46 -07:00
|
|
|
Scenario: Sprockets JS require
|
2011-07-27 19:59:38 -07:00
|
|
|
Given the Server is running at "test-app"
|
2011-07-10 16:02:52 -07:00
|
|
|
When I go to "/javascripts/sprockets_base.js"
|
2011-08-09 11:12:20 -07:00
|
|
|
Then I should see "sprockets_sub_function"
|
|
|
|
|
2011-10-19 16:21:46 -07:00
|
|
|
Scenario: Sprockets JS require with custom :js_dir
|
2011-08-09 11:12:20 -07:00
|
|
|
Given the Server is running at "sprockets-app"
|
2011-10-26 09:38:47 -07:00
|
|
|
When I go to "/library/js/sprockets_base.js"
|
2011-08-31 13:15:59 -07:00
|
|
|
Then I should see "sprockets_sub_function"
|
|
|
|
|
2011-10-26 09:38:47 -07:00
|
|
|
Scenario: Plain JS require with custom :js_dir
|
|
|
|
Given the Server is running at "sprockets-app"
|
|
|
|
When I go to "/library/css/plain.css"
|
|
|
|
Then I should see "helloWorld"
|
|
|
|
|
2011-10-19 16:21:46 -07:00
|
|
|
Scenario: Sprockets JS should have access to yaml data
|
2011-08-31 13:15:59 -07:00
|
|
|
Given the Server is running at "test-app"
|
|
|
|
When I go to "/javascripts/multiple_engines.js"
|
2011-08-31 13:27:29 -07:00
|
|
|
Then I should see "Hello One"
|
|
|
|
|
|
|
|
Scenario: Multiple engine files should build correctly
|
2011-12-15 16:40:07 -08:00
|
|
|
Given a successfully built app at "test-app"
|
2011-12-15 16:05:15 -08:00
|
|
|
When I cd to "build"
|
|
|
|
Then a file named "javascripts/multiple_engines.js" should exist
|
|
|
|
And the file "javascripts/multiple_engines.js" should contain "Hello One"
|
2011-10-19 16:21:46 -07:00
|
|
|
|
|
|
|
Scenario: Sprockets CSS require //require
|
|
|
|
Given the Server is running at "test-app"
|
|
|
|
When I go to "/stylesheets/sprockets_base1.css"
|
|
|
|
Then I should see "hello"
|
|
|
|
|
|
|
|
Scenario: Sprockets CSS require @import
|
|
|
|
Given the Server is running at "test-app"
|
|
|
|
When I go to "/stylesheets/sprockets_base2.css"
|
|
|
|
Then I should see "hello"
|
|
|
|
|
|
|
|
Scenario: Sprockets CSS require with custom :css_dir //require
|
|
|
|
Given the Server is running at "sprockets-app"
|
2011-10-26 09:38:47 -07:00
|
|
|
When I go to "/library/css/sprockets_base1.css"
|
2011-10-19 16:21:46 -07:00
|
|
|
Then I should see "hello"
|
|
|
|
|
2011-10-26 09:38:47 -07:00
|
|
|
Scenario: Plain CSS require with custom :css_dir
|
|
|
|
Given the Server is running at "sprockets-app"
|
|
|
|
When I go to "/library/css/plain.css"
|
|
|
|
Then I should see "helloWorld"
|
|
|
|
|
2011-10-19 16:21:46 -07:00
|
|
|
Scenario: Sprockets CSS require with custom :css_dir @import
|
|
|
|
Given the Server is running at "sprockets-app"
|
2011-10-26 09:38:47 -07:00
|
|
|
When I go to "/library/css/sprockets_base2.css"
|
2011-10-19 16:21:46 -07:00
|
|
|
Then I should see "hello"
|