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