File tree 5 files changed +9
-4
lines changed
5 files changed +9
-4
lines changed Original file line number Diff line number Diff line change 10
10
group :test do
11
11
gem 'contest'
12
12
gem 'rake'
13
- gem 'mocha'
13
+ gem 'mocha' , '0.14.0'
14
14
end
15
15
16
16
gemspec
Original file line number Diff line number Diff line change 36
36
metaclass (0.0.1 )
37
37
mocha (0.14.0 )
38
38
metaclass (~> 0.0.1 )
39
- rack (1.5.2 )
39
+ rack (1.6.4 )
40
40
rack-protection (1.5.1 )
41
41
rack
42
42
rack-test (0.6.2 )
@@ -69,7 +69,7 @@ DEPENDENCIES
69
69
gem-release
70
70
haml
71
71
less
72
- mocha
72
+ mocha ( = 0.14.0 )
73
73
rake
74
74
sass
75
75
sinatra-assetpack !
Original file line number Diff line number Diff line change @@ -10,7 +10,7 @@ def self.registered(app)
10
10
# Returns a list of formats that can be served.
11
11
# Anything not in this list will be rejected.
12
12
def self . supported_formats
13
- @supported_formats ||= %w( css js png jpg gif svg otf eot ttf woff htc ico )
13
+ @supported_formats ||= %w( css js png jpg gif svg otf eot ttf woff woff2 htc ico )
14
14
end
15
15
16
16
# Returns a map of what MIME format each Tilt type returns.
Original file line number Diff line number Diff line change @@ -50,4 +50,9 @@ class AppTest < UnitTest
50
50
get '/fonts/cantarell-regular-webfont.woff'
51
51
assert last_response . content_type =~ %r[^application/font-woff]
52
52
end
53
+
54
+ test 'woff2' do
55
+ get '/fonts/cantarell-regular-webfont.woff2'
56
+ assert last_response . content_type =~ %r[^application/font-woff2]
57
+ end
53
58
end
You can’t perform that action at this time.
0 commit comments