Sha256: ddb729881cad1690b49e90faf7ae37325639e4af50d3d5caa694bae49b9163e8
Contents?: true
Size: 836 Bytes
Versions: 1
Compression:
Stored size: 836 Bytes
Contents
module MiniTestSpecRails module Init module ActiveSupportBehavior extend ActiveSupport::Concern included do singleton_class.class_eval { remove_method :describe } if ::Rails.version < '4.2' extend MiniTest::Spec::DSL include MiniTestSpecRails::DSL include ActiveSupport::Testing::ConstantLookup extend Descriptions register_spec_type(self) { |desc| Class === desc } end module Descriptions def described_class determine_constant_from_test_name(name) do |constant| Class === constant end end end def initialize(*args) Thread.current[:current_spec] = self super end end end end ActiveSupport::TestCase.send :include, MiniTestSpecRails::Init::ActiveSupportBehavior
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
minitest-spec-rails-5.1.0 | lib/minitest-spec-rails/init/active_support.rb |