Sha256: 28977381d45cf4d879af86da85315153dc5b1023a5946e9f6f0b0f5391f667f1
Contents?: true
Size: 581 Bytes
Versions: 3
Compression:
Stored size: 581 Bytes
Contents
require "minitest/autorun" require "mocha/minitest" require "annotate_gem" require "pry" 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.14 | test/test_helper.rb |
annotate_gem-0.0.13 | test/test_helper.rb |
annotate_gem-0.0.12 | test/test_helper.rb |