more sprockets tests

This commit is contained in:
Thomas Reynolds 2011-10-26 09:38:47 -07:00
parent b927d7203f
commit efd598d913
12 changed files with 26 additions and 6 deletions

View file

@ -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

View file

@ -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"

View file

@ -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 ="

View file

@ -1,2 +1,2 @@
set :js_dir, "library/javascripts"
set :css_dir, "library/stylesheets"
set :js_dir, "library/js"
set :css_dir, "library/css"

View file

@ -0,0 +1,3 @@
#helloWorld {
color: red;
}

View file

@ -0,0 +1,3 @@
function hellowWorld() {
}