Sha256: e9fd7b9136959dfdb795201b88b3861381fa9d3a358dce2a4bda448f42f17e0a
Contents?: true
Size: 1.08 KB
Versions: 1
Compression:
Stored size: 1.08 KB
Contents
require_relative 'helper' describe Loader::AutoLoad do before do Loader::Helpers.__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.2.3 | test/test_autoload.rb |