Sha256: 836df3b0d29b226124d6945b4e19bcf017981a5cee48cd00f50ee669717ed668

Contents?: true

Size: 689 Bytes

Versions: 5

Compression:

Stored size: 689 Bytes

Contents

ActiveSupport::TestCase.instance_eval do

  class << self
    remove_method :describe
  end

  register_spec_type(self) do |desc|
    Class === desc && desc < ActiveRecord::Base      
  end

end

# 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

5 entries across 5 versions & 1 rubygems

Version Path
minitest-spec-rails-4.3.4 lib/minitest-spec-rails/init/active_support.rb
minitest-spec-rails-4.3.3 lib/minitest-spec-rails/init/active_support.rb
minitest-spec-rails-4.3.2 lib/minitest-spec-rails/init/active_support.rb
minitest-spec-rails-4.3.1 lib/minitest-spec-rails/init/active_support.rb
minitest-spec-rails-4.3.0 lib/minitest-spec-rails/init/active_support.rb