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

Version Path
epitools-0.5.136 spec/autoreq_spec.rb
epitools-0.5.134 spec/autoreq_spec.rb
epitools-0.5.133 spec/autoreq_spec.rb
epitools-0.5.131 spec/autoreq_spec.rb
epitools-0.5.130 spec/autoreq_spec.rb
epitools-0.5.129 spec/autoreq_spec.rb
epitools-0.5.128 spec/autoreq_spec.rb
epitools-0.5.126 spec/autoreq_spec.rb
epitools-0.5.125 spec/autoreq_spec.rb
epitools-0.5.124 spec/autoreq_spec.rb
epitools-0.5.123 spec/autoreq_spec.rb
epitools-0.5.122 spec/autoreq_spec.rb
epitools-0.5.121 spec/autoreq_spec.rb
epitools-0.5.119 spec/autoreq_spec.rb
epitools-0.5.118 spec/autoreq_spec.rb
epitools-0.5.116 spec/autoreq_spec.rb
epitools-0.5.115 spec/autoreq_spec.rb
epitools-0.5.114 spec/autoreq_spec.rb
epitools-0.5.113 spec/autoreq_spec.rb
epitools-0.5.112 spec/autoreq_spec.rb