Sha256: e34e94f17198ddc1d36abd5f222dd62572ce13ce964984a61f98d553e7343dce
Contents?: true
Size: 568 Bytes
Versions: 3
Compression:
Stored size: 568 Bytes
Contents
require "minitest/autorun" require "mocha/mini_test" require "annotate_gem" module TestHelpers def gemfile_path File.join(File.dirname(__FILE__), "fixtures", "Gemfile") end def annotated_gemfile_path File.join(File.dirname(__FILE__), "fixtures", "Gemfile_annotated") end def with_gemfile(content) file = Tempfile.new('gemfile') file.write(content) file.close yield(file.path) file.unlink end def unindent(str) str.gsub(/^#{str.scan(/^[ ]+(?=\S)/).min}/, "") end end class Minitest::Test include TestHelpers end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
annotate_gem-0.0.11 | test/test_helper.rb |
annotate_gem-0.0.10 | test/test_helper.rb |
annotate_gem-0.0.8 | test/test_helper.rb |