Sha256: 2c76f4468708e8e52b989d91eb5c44175fbc3f1b80fab0c7ac9273ad47edd93a

Contents?: true

Size: 539 Bytes

Versions: 17

Compression:

Stored size: 539 Bytes

Contents

# encoding: utf-8

require File.dirname(__FILE__) + '/spec_helper'

def set_version(major, minor, patch)
  Backup::Version.stubs(:major).returns(major)
  Backup::Version.stubs(:minor).returns(minor)
  Backup::Version.stubs(:patch).returns(patch)
end

describe Backup::Version do
  it 'should return a nicer gemspec output' do
    set_version(1,2,3)
    Backup::Version.current.should == '1.2.3'
  end

  it 'should return a nicer gemspec output with build' do
    set_version(4,5,6)
    Backup::Version.current.should == '4.5.6'
  end
end

Version data entries

17 entries across 17 versions & 3 rubygems

Version Path
backup-3.0.19 spec/version_spec.rb
backup-3.0.18 spec/version_spec.rb
interu-backup-3.0.16 spec/version_spec.rb
backup-3.0.16 spec/version_spec.rb
backup-3.0.15 spec/version_spec.rb
backup-3.0.14 spec/version_spec.rb
backup-3.0.13 spec/version_spec.rb
backup-3.0.12 spec/version_spec.rb
backup-3.0.11 spec/version_spec.rb
alg-backup-3.0.10 spec/version_spec.rb
backup-3.0.10 spec/version_spec.rb
backup-3.0.9 spec/version_spec.rb
backup-3.0.8 spec/version_spec.rb
backup-3.0.7 spec/version_spec.rb
backup-3.0.6 spec/version_spec.rb
backup-3.0.5 spec/version_spec.rb
backup-3.0.4 spec/version_spec.rb