Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

added some implicit test dependencies

  • Loading branch information...
commit b0589792f778ee142f3ef696a4520b0711046faa 1 parent 6c0152f
Jake Benilov authored
Showing with 8 additions and 8 deletions.
  1. +8 −8 test/extra/test_auto_compiler.rb
16 test/extra/test_auto_compiler.rb
View
@@ -68,7 +68,7 @@ def test_handle_request_with_broken_url
end
def test_handle_request_with_file
- if_have 'rack' do
+ if_have 'mime/types', 'rack' do
# Create file
FileUtils.mkdir_p('out')
File.open('out/somefile.txt', 'w') { |io| io.write('hello') }
@@ -102,7 +102,7 @@ def file_server.actual_path_info ; @actual_path_info ; end
end
def test_handle_request_with_dir_with_slash_with_index_file
- if_have 'rack' do
+ if_have 'mime/types', 'rack' do
# Create file
FileUtils.mkdir_p('out/foo/bar')
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
end
def test_handle_request_with_dir_with_slash_without_index_file
- if_have 'rack' do
+ if_have 'mime/types', 'rack' do
# Create file
FileUtils.mkdir_p('out/foo/bar')
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
end
def test_handle_request_with_dir_without_slash_with_index_file
- if_have 'rack' do
+ if_have 'mime/types', 'rack' do
# Create file
FileUtils.mkdir_p('out/foo/bar')
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
end
def test_handle_request_with_dir_without_slash_without_index_file
- if_have 'rack' do
+ if_have 'mime/types', 'rack' do
# Create file
FileUtils.mkdir_p('out/foo/bar')
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
end
def test_handle_request_with_404
- if_have 'rack' do
+ if_have 'mime/types', 'rack' do
# Create file server
file_server = mock
def file_server.call(env)
@@ -355,7 +355,7 @@ def test_serve_with_broken_item
end
def test_reload_config_file_before_each_request
- if_have 'rack' do
+ if_have 'mime/types', 'rack' do
# Create site
Nanoc::CLI.run %w( create_site foo )
@@ -396,7 +396,7 @@ def test_reload_config_file_before_each_request
end
def test_call_with_uri_encoded_path
- if_have 'rack' do
+ if_have 'mime/types', 'rack' do
# Create autocompiler
autocompiler = Nanoc::Extra::AutoCompiler.new('.')
Please sign in to comment.
Something went wrong with that request. Please try again.