content_type 2.1.3 → 2.1.4

Sign up to get free protection for your applications and to get access to all the features.
Files changed (2) hide show
  1. data/spec/content_type_spec.rb +6 -0
  2. metadata +3 -3
@@ -8,6 +8,7 @@ describe ContentType do
8
8
  @img = 'spec/fixtures/grindewald.jpg'
9
9
  @pdf = 'spec/fixtures/pdftest.pdf'
10
10
  @lzm = 'spec/fixtures/compressed.jpg.lz'
11
+ @doc = 'spec/fixtures/wordtest.doc'
11
12
  @dcx = 'spec/fixtures/wordtest.docx'
12
13
  @dot = 'spec/fixtures/.supercabanafuntimekgozzzzzzzzzzzzzzzzzzzz'
13
14
  @pdf_with_charset = 'spec/fixtures/bash.pdf'
@@ -67,6 +68,11 @@ describe ContentType do
67
68
  ct = ContentType.new(@lzm)
68
69
  ct.content_type.should == 'application/x-lzip'
69
70
  end
71
+
72
+ it 'should detect doc files' do
73
+ ct = ContentType.new(@doc)
74
+ ct.content_type.should == 'application/msword'
75
+ end
70
76
  end
71
77
 
72
78
  context 'comparing with shelling out' do
metadata CHANGED
@@ -5,8 +5,8 @@ version: !ruby/object:Gem::Version
5
5
  segments:
6
6
  - 2
7
7
  - 1
8
- - 3
9
- version: 2.1.3
8
+ - 4
9
+ version: 2.1.4
10
10
  platform: ruby
11
11
  authors:
12
12
  - David Turnbull
@@ -14,7 +14,7 @@ autorequire:
14
14
  bindir: bin
15
15
  cert_chain: []
16
16
 
17
- date: 2010-04-10 00:00:00 +10:00
17
+ date: 2010-04-14 00:00:00 +10:00
18
18
  default_executable:
19
19
  dependencies: []
20
20