Sha256: bdaf8664f6e435be7bcec3e2070dc062849cac87c1f3cb2ba03ad91fcb919225
Contents?: true
Size: 907 Bytes
Versions: 4
Compression:
Stored size: 907 Bytes
Contents
#-- # (c) Copyright 2008 Robert Egglestone <r.egglestone@auckland.ac.nz> # See the file LICENSES.txt included with the distribution for # software license details. #++ require File.dirname(__FILE__) + '/../spec_helper' describe Warbler::Gems do it "should accept a hash for initialization" do gems = Warbler::Gems.new({"actionpack" => "1.2.3"}) gems.should include("actionpack") gems["actionpack"].should == "1.2.3" end it "should accept an array for initialization" do gems = Warbler::Gems.new ["activerecord"] gems.should include("activerecord") end it "should allow gems with a version" do gems = Warbler::Gems.new gems["actionpack"] = "> 1.2.3" gems["actionpack"].should == "> 1.2.3" end it "should allow gems without an explicit version" do gems = Warbler::Gems.new gems << "actionpack" gems.should include("actionpack") end end
Version data entries
4 entries across 4 versions & 1 rubygems
Version | Path |
---|---|
warbler-0.9.3 | spec/warbler/gems_spec.rb |
warbler-0.9.2 | spec/warbler/gems_spec.rb |
warbler-0.9.4 | spec/warbler/gems_spec.rb |
warbler-0.9.5 | spec/warbler/gems_spec.rb |