Fix minify css tests

This commit is contained in:
Thomas Reynolds 2015-09-28 13:58:49 -07:00
parent 32891dc6fe
commit 04c133c90f
2 changed files with 25 additions and 5 deletions

View file

@ -5,6 +5,7 @@ Feature: Minify CSS
Given a fixture app "minify-css-app" Given a fixture app "minify-css-app"
And a file named "config.rb" with: And a file named "config.rb" with:
""" """
config[:sass_source_maps] = false
""" """
And the Server is running at "minify-css-app" And the Server is running at "minify-css-app"
When I go to "/stylesheets/site.css" When I go to "/stylesheets/site.css"
@ -15,6 +16,8 @@ Feature: Minify CSS
Given a fixture app "minify-css-app" Given a fixture app "minify-css-app"
And a file named "config.rb" with: And a file named "config.rb" with:
""" """
config[:sass_source_maps] = false
activate :minify_css activate :minify_css
""" """
And the Server is running at "minify-css-app" And the Server is running at "minify-css-app"
@ -30,6 +33,8 @@ Feature: Minify CSS
Given a fixture app "minify-css-app" Given a fixture app "minify-css-app"
And a file named "config.rb" with: And a file named "config.rb" with:
""" """
config[:sass_source_maps] = false
activate :minify_css activate :minify_css
proxy '/css-proxy', '/stylesheets/site.css', ignore: true proxy '/css-proxy', '/stylesheets/site.css', ignore: true
""" """
@ -42,6 +47,8 @@ Feature: Minify CSS
Given a fixture app "passthrough-app" Given a fixture app "passthrough-app"
And a file named "config.rb" with: And a file named "config.rb" with:
""" """
config[:sass_source_maps] = false
module ::PassThrough module ::PassThrough
def self.compress(data) def self.compress(data)
data data
@ -58,6 +65,7 @@ Feature: Minify CSS
Given a fixture app "minify-css-app" Given a fixture app "minify-css-app"
And a file named "config.rb" with: And a file named "config.rb" with:
""" """
config[:sass_source_maps] = false
""" """
And the Server is running at "minify-css-app" And the Server is running at "minify-css-app"
When I go to "/inline-css.html" When I go to "/inline-css.html"
@ -75,6 +83,8 @@ Feature: Minify CSS
Given a fixture app "passthrough-app" Given a fixture app "passthrough-app"
And a file named "config.rb" with: And a file named "config.rb" with:
""" """
config[:sass_source_maps] = false
module ::PassThrough module ::PassThrough
def self.compress(data) def self.compress(data)
data data
@ -100,6 +110,8 @@ Feature: Minify CSS
Given a fixture app "passthrough-app" Given a fixture app "passthrough-app"
And a file named "config.rb" with: And a file named "config.rb" with:
""" """
config[:sass_source_maps] = false
module ::HelloCompressor module ::HelloCompressor
def self.compress(data) def self.compress(data)
"Hello" "Hello"
@ -123,6 +135,8 @@ Feature: Minify CSS
Given a fixture app "minify-css-app" Given a fixture app "minify-css-app"
And a file named "config.rb" with: And a file named "config.rb" with:
""" """
config[:sass_source_maps] = false
activate :minify_css, inline: true activate :minify_css, inline: true
""" """
And the Server is running at "minify-css-app" And the Server is running at "minify-css-app"
@ -138,6 +152,8 @@ Feature: Minify CSS
Given a fixture app "minify-css-app" Given a fixture app "minify-css-app"
And a file named "config.rb" with: And a file named "config.rb" with:
""" """
config[:sass_source_maps] = false
activate :minify_css, :inline => true activate :minify_css, :inline => true
""" """
And the Server is running at "minify-css-app" And the Server is running at "minify-css-app"
@ -155,6 +171,8 @@ Feature: Minify CSS
Given a fixture app "minify-css-app" Given a fixture app "minify-css-app"
And a file named "config.rb" with: And a file named "config.rb" with:
""" """
config[:sass_source_maps] = false
activate :minify_css, :inline => true activate :minify_css, :inline => true
proxy '/inline-css-proxy', '/inline-css.html', ignore: true proxy '/inline-css-proxy', '/inline-css.html', ignore: true
""" """
@ -172,6 +190,8 @@ Feature: Minify CSS
Given a fixture app "minify-css-app" Given a fixture app "minify-css-app"
And a file named "config.rb" with: And a file named "config.rb" with:
""" """
config[:sass_source_maps] = false
mime_type('.xcss', 'text/x-css') mime_type('.xcss', 'text/x-css')
activate :minify_css, content_types: ['text/x-css'], activate :minify_css, content_types: ['text/x-css'],
inline: true, inline: true,

View file

@ -33,7 +33,7 @@ Gem::Specification.new do |s|
s.add_dependency('listen', ['~> 3.0']) s.add_dependency('listen', ['~> 3.0'])
# Tests # Tests
s.add_dependency("capybara", ["~> 2.4.4"]) s.add_dependency("capybara", ["~> 2.5.0"])
# i18n # i18n
s.add_dependency('i18n', ['~> 0.7.0']) s.add_dependency('i18n', ['~> 0.7.0'])