Sha256: fd37112bee4da1683c75260f74da53d6e8f4669e978e5002bbcfa330ed72e151
Contents?: true
Size: 1.09 KB
Versions: 1
Compression:
Stored size: 1.09 KB
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 SamplesController 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.1.0 | test/test_autoload.rb |