require 'spec_helper' require 'appversion/ci' RSpec.describe '#build_no' do include Overview context 'running on CI' do it 'returns build number' do build_no = ENV['TRAVIS_BUILD_NUMBER'] || ENV['CIRCLE_BUILD_NUM'] || '1' expect(Overview::CI.build_no).to eq(build_no) end end end