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(Helpers::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