Sha256: 50ff24934883617cb4bb97dca0ca67a5e1fc364a7f2ba8719099e5a00617f21f
Contents?: true
Size: 969 Bytes
Versions: 1
Compression:
Stored size: 969 Bytes
Contents
require_relative 'helper' describe Loader::AutoLoad do before do Loader::AutoLoad::Support.__send__(:define_singleton_method,:pwd){ __dir__ } end it 'should raise an constant missing error than' do -> { begin TEST rescue Exception => e e end }.call.is_a?(Exception).must_be :==, true Loader.autoload -> { begin TEST rescue Exception => e e end }.call.is_a?(Exception).must_be :==, false -> { begin Cat::Tail rescue Exception => e e end }.call.is_a?(Exception).must_be :==, false -> { begin class Cat Dog end rescue Exception => e e end }.call.is_a?(Exception).must_be :==, false -> { begin BOOOM rescue Exception => e e end }.call.is_a?(Exception).must_be :==, true end # require_relative_directory_r 'lib' end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
loader-2.0.0 | test/test_autoload.rb |