more sprockets tests
This commit is contained in:
parent
b927d7203f
commit
efd598d913
|
@ -2,6 +2,10 @@
|
|||
====
|
||||
Finally support Compass in Sprockets! Thanks to @xdite and @petebrowne
|
||||
|
||||
2.0.13.2
|
||||
====
|
||||
Update Windows eventmachine dep
|
||||
|
||||
2.0.13.1
|
||||
====
|
||||
build --clean shouldn't remove dotfiles
|
||||
|
|
|
@ -7,9 +7,14 @@ Feature: Sprockets
|
|||
|
||||
Scenario: Sprockets JS require with custom :js_dir
|
||||
Given the Server is running at "sprockets-app"
|
||||
When I go to "/library/javascripts/sprockets_base.js"
|
||||
When I go to "/library/js/sprockets_base.js"
|
||||
Then I should see "sprockets_sub_function"
|
||||
|
||||
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"
|
||||
|
||||
Scenario: Sprockets JS should have access to yaml data
|
||||
Given the Server is running at "test-app"
|
||||
When I go to "/javascripts/multiple_engines.js"
|
||||
|
@ -32,10 +37,15 @@ Feature: Sprockets
|
|||
|
||||
Scenario: Sprockets CSS require with custom :css_dir //require
|
||||
Given the Server is running at "sprockets-app"
|
||||
When I go to "/library/stylesheets/sprockets_base1.css"
|
||||
When I go to "/library/css/sprockets_base1.css"
|
||||
Then I should see "hello"
|
||||
|
||||
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"
|
||||
|
||||
Scenario: Sprockets CSS require with custom :css_dir @import
|
||||
Given the Server is running at "sprockets-app"
|
||||
When I go to "/library/stylesheets/sprockets_base2.css"
|
||||
When I go to "/library/css/sprockets_base2.css"
|
||||
Then I should see "hello"
|
|
@ -1,5 +1,5 @@
|
|||
Feature: Sprockets Gems
|
||||
Scenario: Sprockets can pull jQuery from gem
|
||||
Given the Server is running at "sprockets-app"
|
||||
When I go to "/library/javascripts/jquery_include.js"
|
||||
When I go to "/library/js/jquery_include.js"
|
||||
Then I should see "var jQuery ="
|
|
@ -1,2 +1,2 @@
|
|||
set :js_dir, "library/javascripts"
|
||||
set :css_dir, "library/stylesheets"
|
||||
set :js_dir, "library/js"
|
||||
set :css_dir, "library/css"
|
3
fixtures/sprockets-app/source/library/css/plain.css
Normal file
3
fixtures/sprockets-app/source/library/css/plain.css
Normal file
|
@ -0,0 +1,3 @@
|
|||
#helloWorld {
|
||||
color: red;
|
||||
}
|
3
fixtures/sprockets-app/source/library/js/plain.js
Normal file
3
fixtures/sprockets-app/source/library/js/plain.js
Normal file
|
@ -0,0 +1,3 @@
|
|||
function hellowWorld() {
|
||||
|
||||
}
|
Loading…
Reference in a new issue