Sha256: bb767ae7ef3a68bb0c7b44455942a227155e18ccbf1520ea6a634a5eac4c84f2
Contents?: true
Size: 809 Bytes
Versions: 8
Compression:
Stored size: 809 Bytes
Contents
module MiniTestSpecRails module Init module ActiveSupportBehavior extend ActiveSupport::Concern included do singleton_class.class_eval { remove_method :describe } 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
8 entries across 8 versions & 2 rubygems