Sha256: b73d3dced95ed87dd7e9abc530206cf84bc6d6cd46a9a05b2ce2faafce2f4c7c
Contents?: true
Size: 828 Bytes
Versions: 11
Compression:
Stored size: 828 Bytes
Contents
require 'epitools' 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
11 entries across 11 versions & 1 rubygems