Sha256: 045b28da6c1e22f7f4b651a51d79728157c37c63471fb57235c1e9817b006c7f

Contents?: true

Size: 699 Bytes

Versions: 14

Compression:

Stored size: 699 Bytes

Contents

require 'simplecov'

$LOAD_PATH.unshift(File.join(File.dirname(__FILE__), '..', 'lib'))

require 'minitest/autorun'
require 'bundler'
Bundler.require
require 'inch'

def fixture_path(name)
  File.join(File.dirname(__FILE__), "fixtures", name.to_s)
end

module Inch
  module Test
    class << self
      attr_accessor :object_providers

      def codebase(name)
        Inch::Codebase::Proxy.new object_provider(name)
      end

      def object_provider(name)
        self.object_providers ||= {}
        self.object_providers[name] ||= ::Inch::CodeObject::Provider.parse(fixture_path(name))
      end
    end
  end
end

def test_codebase(name)
  codebase = Inch::Test.codebase(name)
  codebase
end

Version data entries

14 entries across 14 versions & 1 rubygems

Version Path
inch-0.4.3.rc2 test/test_helper.rb
inch-0.4.3.rc1 test/test_helper.rb
inch-0.4.2 test/test_helper.rb
inch-0.4.1 test/test_helper.rb
inch-0.4.0 test/test_helper.rb
inch-0.4.0.rc3 test/test_helper.rb
inch-0.4.0.rc2 test/test_helper.rb
inch-0.4.0.rc1 test/test_helper.rb
inch-0.3.4.rc1 test/test_helper.rb
inch-0.3.3 test/test_helper.rb
inch-0.3.3.rc1 test/test_helper.rb
inch-0.3.2 test/test_helper.rb
inch-0.3.2.rc2 test/test_helper.rb
inch-0.3.2.rc1 test/test_helper.rb