Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Fetching contributors…

Cannot retrieve contributors at this time

38 lines (29 sloc) 0.851 kb
require 'rubygems'
require 'minitest/autorun'
require 'purdytest'
def test_project_path
@cached ||= File.expand_path("test_project", File.dirname(__FILE__))
end
def test_tags_file
File.join(test_project_path, "tags")
end
def test_gems_tags_file
File.join(test_project_path, "gems.tags")
end
def custom_path_file
File.join(test_project_path, "custom", "tags")
end
def test_stdlib_tags_file
File.join(test_project_path, "stdlib.tags")
end
def test_override_tags_file
File.join(test_project_path, "override.tags")
end
def clean_tags
[test_tags_file, test_gems_tags_file, test_stdlib_tags_file, custom_path_file, test_override_tags_file].each do |file|
File.delete(file) if File.exists?(file)
end
if File.exists?(File.join(test_project_path, 'custom'))
system("rmdir #{File.join(test_project_path, 'custom')}")
end
end
Jump to Line
Something went wrong with that request. Please try again.