fix gzip spec
This commit is contained in:
parent
5897c4c4a4
commit
21c2b737f5
|
@ -1,4 +1,3 @@
|
||||||
@nowindows
|
|
||||||
Feature: GZIP assets during build
|
Feature: GZIP assets during build
|
||||||
|
|
||||||
Scenario: Built assets should be gzipped
|
Scenario: Built assets should be gzipped
|
||||||
|
@ -10,8 +9,7 @@ Feature: GZIP assets during build
|
||||||
| build/javascripts/test.js.gz |
|
| build/javascripts/test.js.gz |
|
||||||
| build/stylesheets/test.css |
|
| build/stylesheets/test.css |
|
||||||
| build/stylesheets/test.css.gz |
|
| build/stylesheets/test.css.gz |
|
||||||
When I run `file build/javascripts/test.js.gz`
|
And build/javascripts/test.js.gz should be binary
|
||||||
Then the output should contain "gzip"
|
|
||||||
|
|
||||||
Scenario: Preview server doesn't change
|
Scenario: Preview server doesn't change
|
||||||
Given the Server is running at "gzip-app"
|
Given the Server is running at "gzip-app"
|
||||||
|
|
|
@ -71,3 +71,7 @@ end
|
||||||
Then /^the file "([^"]*)" should contain '([^']*)'$/ do |file, partial_content|
|
Then /^the file "([^"]*)" should contain '([^']*)'$/ do |file, partial_content|
|
||||||
check_file_content(file, partial_content, true)
|
check_file_content(file, partial_content, true)
|
||||||
end
|
end
|
||||||
|
|
||||||
|
And /(.*) should be binary/ do |file|
|
||||||
|
expect(File.binread(File.join(current_dir, file), 2)).to eq(['1F8B'].pack('H*'))
|
||||||
|
end
|
||||||
|
|
Loading…
Reference in a new issue