Sha256: 5b2c9ad8b5ed5a8f9f8b315af2296e42d93ed14629c4db06a925c3b5d7386dad
Contents?: true
Size: 919 Bytes
Versions: 3
Compression:
Stored size: 919 Bytes
Contents
module MiniTestSpecRails module Init module ActiveSupportBehavior extend ActiveSupport::Concern included do singleton_class.send :remove_method, :describe register_spec_type(self) { |desc| Class === desc && desc < ActiveRecord::Base } register_rails_test_case self end end end end ActiveSupport::TestCase.send :include, MiniTestSpecRails::Init::ActiveSupportBehavior # The AbstractController::Helpers#default_helper_module! blows up using # ActiveSupport's modified LoadError class under Ruby 1.8 because describe # blocks with spaces for their names have a `module_path` of something like # "nested 1" while in Ruby 1.9 it is something like "#<Class:0x007fa256ea1118>" # and hence wont find a #path match in REGEXPS due to the space. So add # another that allows filenames with spaces in it. # LoadError::REGEXPS << %r{^Missing \w+ (?:file\s*)?(.*\.rb)$}i
Version data entries
3 entries across 3 versions & 1 rubygems