Sha256: 3df5f280d11332ac26f58e0387837ad9b652e26123f4e393d603673d675957f5

Contents?: true

Size: 859 Bytes

Versions: 3

Compression:

Stored size: 859 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
        true
      rescue LoadError
        false
      end
    end

    unless load_lib.call "mocha/minitest"
      load_lib.call "mocha/mini_test"
    end

    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

3 entries across 3 versions & 1 rubygems

Version Path
minitest-utils-0.4.3 lib/minitest/utils.rb
minitest-utils-0.4.2 lib/minitest/utils.rb
minitest-utils-0.4.1 lib/minitest/utils.rb