fix gzip spec

This commit is contained in:
Eliott Appleford 2014-07-06 04:02:43 +01:00
parent 5897c4c4a4
commit 21c2b737f5
2 changed files with 5 additions and 3 deletions

View file

@ -1,4 +1,3 @@
@nowindows
Feature: GZIP assets during build
Scenario: Built assets should be gzipped
@ -10,8 +9,7 @@ Feature: GZIP assets during build
| build/javascripts/test.js.gz |
| build/stylesheets/test.css |
| build/stylesheets/test.css.gz |
When I run `file build/javascripts/test.js.gz`
Then the output should contain "gzip"
And build/javascripts/test.js.gz should be binary
Scenario: Preview server doesn't change
Given the Server is running at "gzip-app"

View file

@ -71,3 +71,7 @@ end
Then /^the file "([^"]*)" should contain '([^']*)'$/ do |file, partial_content|
check_file_content(file, partial_content, true)
end
And /(.*) should be binary/ do |file|
expect(File.binread(File.join(current_dir, file), 2)).to eq(['1F8B'].pack('H*'))
end