Sha256: 8755fa65657b3e1aff1380e39166fe1ac9b9747ca930de65c6bedac90a58c7d3
Contents?: true
Size: 777 Bytes
Versions: 3
Compression:
Stored size: 777 Bytes
Contents
module MiniTestSpecRails module Init module ActiveSupportBehavior extend ActiveSupport::Concern included do 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 if Minitest::VERSION < "5.3.3" end end end ActiveSupport::TestCase.send :include, MiniTestSpecRails::Init::ActiveSupportBehavior
Version data entries
3 entries across 3 versions & 1 rubygems