Sha256: 55a51734bbdf1592656db230b8e54754a2280b1f336f6113ddb0d62f0cf10b56

Contents?: true

Size: 887 Bytes

Versions: 3

Compression:

Stored size: 887 Bytes

Contents

#--
# (c) Copyright 2007-2008 Sun Microsystems, Inc.
# 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

3 entries across 3 versions & 1 rubygems

Version Path
warbler-0.9.11 spec/warbler/gems_spec.rb
warbler-0.9.10 spec/warbler/gems_spec.rb
warbler-0.9.9 spec/warbler/gems_spec.rb