Sha256: 1b6462bb789945d50595b9e8a542dcd7a7685a3928390e96906ae6a57969258b
Contents?: true
Size: 1017 Bytes
Versions: 2
Compression:
Stored size: 1017 Bytes
Contents
require 'ronin/platform/extension_cache' require 'platform/helpers/overlays' require 'spec_helper' describe Platform::ExtensionCache do before(:all) do Platform.load_overlays(overlay_cache_path) @cache = Platform::ExtensionCache.new end it "should be able to load an extension from the overlays" do ext = @cache.load_extension('test') ext.should_not be_nil ext.name.should == 'test' end it "should provide transparent caching of extensions" do ext = @cache['test'] ext.should_not be_nil ext.name.should == 'test' @cache['test'].should == ext end it "should load together the extension from all overlays" do ext = @cache.load_extension('test') ext.should_not be_nil ext.test1.should == 'test one' ext.test2.should == 'test two' end it "should have loaded extensions with multiple paths" do paths = @cache.load_extension('test').paths paths.length.should == 2 paths.select { |path| path =~ /test$/ }.should == paths end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
ronin-0.2.1 | spec/platform/extension_cache_spec.rb |
ronin-0.2.0 | spec/platform/extension_cache_spec.rb |