Fix minify css tests
This commit is contained in:
parent
32891dc6fe
commit
04c133c90f
|
@ -5,6 +5,7 @@ Feature: Minify CSS
|
|||
Given a fixture app "minify-css-app"
|
||||
And a file named "config.rb" with:
|
||||
"""
|
||||
config[:sass_source_maps] = false
|
||||
"""
|
||||
And the Server is running at "minify-css-app"
|
||||
When I go to "/stylesheets/site.css"
|
||||
|
@ -15,6 +16,8 @@ Feature: Minify CSS
|
|||
Given a fixture app "minify-css-app"
|
||||
And a file named "config.rb" with:
|
||||
"""
|
||||
config[:sass_source_maps] = false
|
||||
|
||||
activate :minify_css
|
||||
"""
|
||||
And the Server is running at "minify-css-app"
|
||||
|
@ -30,6 +33,8 @@ Feature: Minify CSS
|
|||
Given a fixture app "minify-css-app"
|
||||
And a file named "config.rb" with:
|
||||
"""
|
||||
config[:sass_source_maps] = false
|
||||
|
||||
activate :minify_css
|
||||
proxy '/css-proxy', '/stylesheets/site.css', ignore: true
|
||||
"""
|
||||
|
@ -42,6 +47,8 @@ Feature: Minify CSS
|
|||
Given a fixture app "passthrough-app"
|
||||
And a file named "config.rb" with:
|
||||
"""
|
||||
config[:sass_source_maps] = false
|
||||
|
||||
module ::PassThrough
|
||||
def self.compress(data)
|
||||
data
|
||||
|
@ -58,6 +65,7 @@ Feature: Minify CSS
|
|||
Given a fixture app "minify-css-app"
|
||||
And a file named "config.rb" with:
|
||||
"""
|
||||
config[:sass_source_maps] = false
|
||||
"""
|
||||
And the Server is running at "minify-css-app"
|
||||
When I go to "/inline-css.html"
|
||||
|
@ -75,6 +83,8 @@ Feature: Minify CSS
|
|||
Given a fixture app "passthrough-app"
|
||||
And a file named "config.rb" with:
|
||||
"""
|
||||
config[:sass_source_maps] = false
|
||||
|
||||
module ::PassThrough
|
||||
def self.compress(data)
|
||||
data
|
||||
|
@ -100,6 +110,8 @@ Feature: Minify CSS
|
|||
Given a fixture app "passthrough-app"
|
||||
And a file named "config.rb" with:
|
||||
"""
|
||||
config[:sass_source_maps] = false
|
||||
|
||||
module ::HelloCompressor
|
||||
def self.compress(data)
|
||||
"Hello"
|
||||
|
@ -123,6 +135,8 @@ Feature: Minify CSS
|
|||
Given a fixture app "minify-css-app"
|
||||
And a file named "config.rb" with:
|
||||
"""
|
||||
config[:sass_source_maps] = false
|
||||
|
||||
activate :minify_css, inline: true
|
||||
"""
|
||||
And the Server is running at "minify-css-app"
|
||||
|
@ -138,6 +152,8 @@ Feature: Minify CSS
|
|||
Given a fixture app "minify-css-app"
|
||||
And a file named "config.rb" with:
|
||||
"""
|
||||
config[:sass_source_maps] = false
|
||||
|
||||
activate :minify_css, :inline => true
|
||||
"""
|
||||
And the Server is running at "minify-css-app"
|
||||
|
@ -155,6 +171,8 @@ Feature: Minify CSS
|
|||
Given a fixture app "minify-css-app"
|
||||
And a file named "config.rb" with:
|
||||
"""
|
||||
config[:sass_source_maps] = false
|
||||
|
||||
activate :minify_css, :inline => true
|
||||
proxy '/inline-css-proxy', '/inline-css.html', ignore: true
|
||||
"""
|
||||
|
@ -172,6 +190,8 @@ Feature: Minify CSS
|
|||
Given a fixture app "minify-css-app"
|
||||
And a file named "config.rb" with:
|
||||
"""
|
||||
config[:sass_source_maps] = false
|
||||
|
||||
mime_type('.xcss', 'text/x-css')
|
||||
activate :minify_css, content_types: ['text/x-css'],
|
||||
inline: true,
|
||||
|
|
|
@ -33,7 +33,7 @@ Gem::Specification.new do |s|
|
|||
s.add_dependency('listen', ['~> 3.0'])
|
||||
|
||||
# Tests
|
||||
s.add_dependency("capybara", ["~> 2.4.4"])
|
||||
s.add_dependency("capybara", ["~> 2.5.0"])
|
||||
|
||||
# i18n
|
||||
s.add_dependency('i18n', ['~> 0.7.0'])
|
||||
|
|
Loading…
Reference in a new issue