spec/appversion_spec.rb in overview-0.0.3.56 vs spec/appversion_spec.rb in overview-0.0.3.61
- old
+ new
@@ -46,13 +46,16 @@
RSpec.describe '#tagged_build?' do
include Overview
- it 'returns true if TRAVIS_TAG is v0.0.3.5' do
- build_no = ENV['TRAVIS_BUILD_NUMBER'] || ENV['CIRCLE_BUILD_NUM'] || '1'
+ it 'v0.0.3.5 returns true' do
expect(Overview::CI.tagged_build?('v0.0.3.5')).to eq(true)
end
+ it 'EMPTY returns false' do
+ expect(Overview::CI.tagged_build?('EMPTY')).to eq(false)
+ end
+
end