Sha256: a29a8f529462e430f78179e98f5f4999920458aaa947eeb2f23a86948186ff63
Contents?: true
Size: 834 Bytes
Versions: 7
Compression:
Stored size: 834 Bytes
Contents
module Minitest module Utils module UrlHelpers include Rails.application.routes.url_helpers def default_url_options config = Rails.configuration Rails.application.routes.default_url_options || config.action_controller.default_url_options || config.action_mailer.default_url_options || {} end end end end module ActiveSupport class TestCase extend Minitest::Spec::DSL if defined?(Minitest::Spec::DSL) require "minitest/utils/rails/capybara" if defined?(Capybara) def t(*args) I18n.t(*args) end def l(*args) I18n.l(*args) end end end module ActionController class TestCase include Minitest::Utils::UrlHelpers end end module ActionMailer class TestCase include Minitest::Utils::UrlHelpers end end
Version data entries
7 entries across 7 versions & 1 rubygems