1
0
Fork 0
mirror of https://github.com/middleman/middleman.git synced 2022-11-09 12:20:27 -05:00

add test for vendored js

This commit is contained in:
Vasily Fedoseyev 2012-02-17 03:22:48 +04:00
parent c9b4edcc0a
commit 7458acae4d
3 changed files with 9 additions and 2 deletions

View file

@ -3,8 +3,13 @@ Feature: Sprockets Gems
Given the Server is running at "sprockets-app" Given the Server is running at "sprockets-app"
When I go to "/library/js/jquery_include.js" When I go to "/library/js/jquery_include.js"
Then I should see "var jQuery =" Then I should see "var jQuery ="
# Scenario: Sprockets can pull CSS from gem # Scenario: Sprockets can pull CSS from gem
# Given the Server is running at "sprockets-app" # Given the Server is running at "sprockets-app"
# When I go to "/library/css/bootstrap_include.css" # When I go to "/library/css/bootstrap_include.css"
# Then I should see "Bootstrap" # Then I should see "Bootstrap"
Scenario: Sprockets can pull js from vendored assets
Given the Server is running at "sprockets-app"
When I go to "/library/js/vendored_include.js"
Then I should see "var vendored_js_included = true;"

View file

@ -0,0 +1 @@
//= require "vendored_js"

View file

@ -0,0 +1 @@
var vendored_js_included = true;