Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

added some implicit test dependencies

  • Loading branch information...
commit b0589792f778ee142f3ef696a4520b0711046faa 1 parent 6c0152f
Jake Benilov authored

Showing 1 changed file with 8 additions and 8 deletions. Show diff stats Hide diff stats

  1. +8 8 test/extra/test_auto_compiler.rb
16 test/extra/test_auto_compiler.rb
@@ -68,7 +68,7 @@ def test_handle_request_with_broken_url
68 68 end
69 69
70 70 def test_handle_request_with_file
71   - if_have 'rack' do
  71 + if_have 'mime/types', 'rack' do
72 72 # Create file
73 73 FileUtils.mkdir_p('out')
74 74 File.open('out/somefile.txt', 'w') { |io| io.write('hello') }
@@ -102,7 +102,7 @@ def file_server.actual_path_info ; @actual_path_info ; end
102 102 end
103 103
104 104 def test_handle_request_with_dir_with_slash_with_index_file
105   - if_have 'rack' do
  105 + if_have 'mime/types', 'rack' do
106 106 # Create file
107 107 FileUtils.mkdir_p('out/foo/bar')
108 108 File.open('out/foo/bar/index.html', 'w') { |io| io.write('hello') }
@@ -136,7 +136,7 @@ def file_server.actual_path_info ; @actual_path_info ; end
136 136 end
137 137
138 138 def test_handle_request_with_dir_with_slash_without_index_file
139   - if_have 'rack' do
  139 + if_have 'mime/types', 'rack' do
140 140 # Create file
141 141 FileUtils.mkdir_p('out/foo/bar')
142 142 File.open('out/foo/bar/someotherfile.txt', 'w') { |io| io.write('hello') }
@@ -170,7 +170,7 @@ def file_server.actual_path_info ; @actual_path_info ; end
170 170 end
171 171
172 172 def test_handle_request_with_dir_without_slash_with_index_file
173   - if_have 'rack' do
  173 + if_have 'mime/types', 'rack' do
174 174 # Create file
175 175 FileUtils.mkdir_p('out/foo/bar')
176 176 File.open('out/foo/bar/index.html', 'w') { |io| io.write('hello') }
@@ -204,7 +204,7 @@ def file_server.actual_path_info ; @actual_path_info ; end
204 204 end
205 205
206 206 def test_handle_request_with_dir_without_slash_without_index_file
207   - if_have 'rack' do
  207 + if_have 'mime/types', 'rack' do
208 208 # Create file
209 209 FileUtils.mkdir_p('out/foo/bar')
210 210 File.open('out/foo/bar/someotherfile.txt', 'w') { |io| io.write('hello') }
@@ -238,7 +238,7 @@ def file_server.actual_path_info ; @actual_path_info ; end
238 238 end
239 239
240 240 def test_handle_request_with_404
241   - if_have 'rack' do
  241 + if_have 'mime/types', 'rack' do
242 242 # Create file server
243 243 file_server = mock
244 244 def file_server.call(env)
@@ -355,7 +355,7 @@ def test_serve_with_broken_item
355 355 end
356 356
357 357 def test_reload_config_file_before_each_request
358   - if_have 'rack' do
  358 + if_have 'mime/types', 'rack' do
359 359 # Create site
360 360 Nanoc::CLI.run %w( create_site foo )
361 361
@@ -396,7 +396,7 @@ def test_reload_config_file_before_each_request
396 396 end
397 397
398 398 def test_call_with_uri_encoded_path
399   - if_have 'rack' do
  399 + if_have 'mime/types', 'rack' do
400 400 # Create autocompiler
401 401 autocompiler = Nanoc::Extra::AutoCompiler.new('.')
402 402

0 comments on commit b058979

Please sign in to comment.
Something went wrong with that request. Please try again.