mirror of
https://github.com/middleman/middleman.git
synced 2022-11-09 12:20:27 -05:00
b42e4edd66
* spelling: accidentally * spelling: activesupport * spelling: aggressive * spelling: attribute * spelling: background * spelling: callback * spelling: classes * spelling: duped * spelling: environment * spelling: forty * spelling: interrupt * spelling: javascript * spelling: localization * spelling: localized * spelling: recursive * spelling: registered * spelling: rendering * spelling: representation * spelling: successful * spelling: symbol
47 lines
No EOL
1.1 KiB
Gherkin
47 lines
No EOL
1.1 KiB
Gherkin
Feature: CSS and JavaScripts which are minify shouldn't be re-minified
|
|
|
|
Scenario: JS files containing ".min" should not be re-compressed
|
|
Given an empty app
|
|
And a file named "config.rb" with:
|
|
"""
|
|
activate :minify_javascript
|
|
"""
|
|
And a file named "source/javascripts/test.min.js" with:
|
|
"""
|
|
var numbers = [ 1,
|
|
2,
|
|
3,
|
|
4,
|
|
5,
|
|
6,
|
|
7,
|
|
8,
|
|
9,
|
|
10 ];
|
|
"""
|
|
And the Server is running at "empty_app"
|
|
When I go to "/javascripts/test.min.js"
|
|
Then I should see "10" lines
|
|
|
|
Scenario: CSS files containing ".min" should not be re-compressed
|
|
Given an empty app
|
|
And a file named "config.rb" with:
|
|
"""
|
|
activate :minify_css
|
|
"""
|
|
And a file named "source/stylesheets/test.min.css" with:
|
|
"""
|
|
body { one: 1;
|
|
two: 2;
|
|
three: 3;
|
|
four: 4;
|
|
five: 5;
|
|
six: 6;
|
|
seven: 7;
|
|
eight: 8;
|
|
nine: 9;
|
|
ten: 10; }
|
|
"""
|
|
And the Server is running at "empty_app"
|
|
When I go to "/stylesheets/test.min.css"
|
|
Then I should see "10" lines |