Sha256: 222d8c81613741659a66c412db1db8219b028cabce7aa2b1c75513b82ce65115

Contents?: true

Size: 443 Bytes

Versions: 2

Compression:

Stored size: 443 Bytes

Contents

require 'spec_helper'

describe Bumpy do
  describe ".bump_version" do
    def bump(v)
      subject.bump_version(v)
    end

    TEST_DATA = [
      ['1.0.0', '1.0.1'],
      ['1.0.9', '1.0.10'],
      ['1.0.5.pre9', '1.0.5.pre10'],
      ['12.0', '12.1'],
      ['1.2.3.dev.9', '1.2.3.dev.10']
    ]

    TEST_DATA.each do |from, to|
      it "correctly bumps #{from} to #{to}" do
        bump(from).should == to
      end
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
bumpy-1.0.0 spec/bumpy_spec.rb
bumpy-0.1.5 spec/bumpy_spec.rb