add some sprockets update tests

This commit is contained in:
Thomas Reynolds 2012-05-24 10:24:36 -07:00
parent 4b818ea230
commit 220bb5edb2
2 changed files with 23 additions and 2 deletions

View file

@ -35,6 +35,28 @@ Feature: Sprockets
Given the Server is running at "sprockets-app2"
When I go to "/stylesheets/sprockets_base2.css"
Then I should see "hello"
Scenario: Sprockets CSS require //require (updates)
Given the Server is running at "sprockets-app2"
When I go to "/stylesheets/sprockets_base1.css"
Then I should see "hello"
And the file "source/stylesheets/sprockets_sub.css.scss" has the contents
"""
hola { mundo: "hola"; }
"""
When I go to "/stylesheets/sprockets_base1.css"
Then I should see "hola"
Scenario: Sprockets CSS require @import (updates)
Given the Server is running at "sprockets-app2"
When I go to "/stylesheets/sprockets_base2.css"
Then I should see "hello"
And the file "source/stylesheets/sprockets_sub.css.scss" has the contents
"""
hola { mundo: "hola"; }
"""
When I go to "/stylesheets/sprockets_base2.css"
Then I should see "hola"
Scenario: Sprockets CSS require with custom :css_dir //require
Given the Server is running at "sprockets-app"

View file

@ -27,5 +27,4 @@ Gem::Specification.new do |s|
s.add_dependency("sprockets", ["~> 2.1"])
s.add_dependency("sprockets-sass", ["~> 0.8.0"])
s.add_dependency("maruku", ["~> 0.6.0"])
end
end