Sha256: b1220e12742a08869cae1a298f3d61bf794a07f5d371483eb2236e9ce501fbda

Contents?: true

Size: 418 Bytes

Versions: 1

Compression:

Stored size: 418 Bytes

Contents

describe Commander::Manager do
  before :each do
    @manager = Commander::Manager.instance 
  end
  
  it "should parse version numbers" do
    @manager.parse_version('1.2.3').should == [1, 2, 3]
  end
  
  it "should validate version numbers" do
    @manager.valid_version?('1.2.3').should == true
  end
  
  it "should invalidate version numbers" do
    @manager.valid_version?('1.2').should_not == true
  end

end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
visionmedia-commander-1.2.2 spec/manager_spec.rb