Sha256: d477afdd11d4348a71f94cbf946bb043e96c26b21e5c18fc67377f9d11b7ad8a
Contents?: true
Size: 836 Bytes
Versions: 47
Compression:
Stored size: 836 Bytes
Contents
require 'epitools/minimal' describe "autoreq" do it "should have Haml and Units installed" do gems = Gem.source_index.to_a.map{|name, spec| spec.name}.uniq gems.include?("haml").should == true gems.include?("units").should == true end it "autoreqs a gem" do defined?(Haml).should == nil autoreq :Haml, 'haml' !!defined?(Haml).should == false lambda { Haml }.should_not raise_error end it "autoreqs a regular ruby file" do defined?(Net).should == nil module Net autoreq :HTTP, 'net/http' end lambda { Net::HTTP }.should_not raise_error end it "autoreqs a gem with a block" do defined?(Units).should == nil autoreq :Units do gem 'units', '~> 1.0' require 'units' end lambda { Units }.should_not raise_error end end
Version data entries
47 entries across 47 versions & 1 rubygems