Sha256: 2fbaa4ee3925a2739fe2522d7045305b93d7dff03e4714ebc7239d98761789fe
Contents?: true
Size: 868 Bytes
Versions: 27
Compression:
Stored size: 868 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
27 entries across 27 versions & 1 rubygems