Fixture-less ignored_already_minified

This commit is contained in:
Thomas Reynolds 2012-04-26 16:20:03 -07:00
parent 874ebc13c9
commit 2e68e09200
4 changed files with 39 additions and 26 deletions

View file

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

View file

@ -1,2 +0,0 @@
activate :minify_javascript
activate :minify_css

View file

@ -1,10 +0,0 @@
var numbers = [ 1,
2,
3,
4,
5,
6,
7,
8,
9,
10 ];

View file

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