Sha256: 7d1cea266b90e8589f61e14ed77ecd607fcbc8397e03ac6288b865b504dd120b

Contents?: true

Size: 794 Bytes

Versions: 1

Compression:

Stored size: 794 Bytes

Contents

module Minitest
  module Utils
    require "minitest"
    require "minitest/utils/version"
    require "minitest/utils/reporter"
    require "minitest/utils/extension"
    require "minitest/utils/test_notifier_reporter"

    load_lib = lambda do |path, &block|
      begin
        require path
        block.call if block
      rescue LoadError
        return
      end
    end

    load_lib.call "mocha/mini_test"
    load_lib.call "capybara"

    load_lib.call "webmock" do
      require "minitest/utils/setup/webmock"
    end

    load_lib.call "database_cleaner" do
      require "minitest/utils/setup/database_cleaner"
    end

    load_lib.call "factory_girl" do
      require "minitest/utils/setup/factory_girl"
    end

    require "minitest/utils/railtie" if defined?(Rails)
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
minitest-utils-0.4.0 lib/minitest/utils.rb