Sha256: 831df46e2b9d0b48d58131975151530edf508802d4d6ffa189cbdcaec658d483

Contents?: true

Size: 636 Bytes

Versions: 4

Compression:

Stored size: 636 Bytes

Contents

require 'spec_helper'
require 'helpers/git'
require 'helpers/ci'
require 'appversion'


RSpec.describe 'CI#build_no' do
  it 'returns build number' do
    build_no = ENV['TRAVIS_BUILD_NUMBER'] || ENV['CIRCLE_BUILD_NUM'] || '1'
    expect(CI.build_no).to eq(build_no)
  end
end


RSpec.describe 'Release#is_pre_release?' do
  include AppVersion
  it 'returns true' do
    expect(AppVersion::Release.is_pre_release?('')).to eq(true)
  end
end

=begin
TODO: make these functions deterministic by passing in the tag
RSpec.describe 'Git#tag' do
  include AppVersion
  it 'returns true' do
    expect(Git.tag.length).to be > 1
  end
end
=end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
overview-0.0.5.pre.22 spec/appversion_spec.rb
overview-0.0.4.17 spec/appversion_spec.rb
overview-0.0.4.14 spec/appversion_spec.rb
overview-0.0.4.12 spec/appversion_spec.rb