Fixture-less ignored_already_minified
This commit is contained in:
parent
874ebc13c9
commit
2e68e09200
4 changed files with 39 additions and 26 deletions
|
@ -1,12 +1,47 @@
|
|||
Feature: CSS and Javascripts which are minify shouldn't be re-minified
|
||||
Scenario: CSS file
|
||||
|
||||
|
||||
Scenario: JS files containing ".min" should not be re-compressed
|
||||
And the Server is running at "already-minified-app"
|
||||
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
|
||||
And the Server is running at "already-minified-app"
|
||||
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
|
|
@ -1,2 +0,0 @@
|
|||
activate :minify_javascript
|
||||
activate :minify_css
|
|
@ -1,10 +0,0 @@
|
|||
var numbers = [ 1,
|
||||
2,
|
||||
3,
|
||||
4,
|
||||
5,
|
||||
6,
|
||||
7,
|
||||
8,
|
||||
9,
|
||||
10 ];
|
|
@ -1,10 +0,0 @@
|
|||
body { one: 1;
|
||||
two: 2;
|
||||
three: 3;
|
||||
four: 4;
|
||||
five: 5;
|
||||
six: 6;
|
||||
seven: 7;
|
||||
eight: 8;
|
||||
nine: 9;
|
||||
ten: 10; }
|
Loading…
Add table
Reference in a new issue