Sha256: feea409336331a9ecc38b8960a7ab6ee7433dc2574621042280a074ad9ec8fdb

Contents?: true

Size: 882 Bytes

Versions: 2

Compression:

Stored size: 882 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
      end
    end

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

    load_lib.call("capybara/poltergeist") do
      require "minitest/utils/setup/poltergeist"
    end

    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

2 entries across 2 versions & 1 rubygems

Version Path
minitest-utils-0.3.1 lib/minitest/utils.rb
minitest-utils-0.3.0 lib/minitest/utils.rb