Sha256: 7ff99cdd5bdb6bcb82e0828a40455866f8618f49ca84e5dc8b1bd62a95eaa7da
Contents?: true
Size: 573 Bytes
Versions: 12
Compression:
Stored size: 573 Bytes
Contents
require 'spec_helper' module CodeClimate::TestReporter describe Ci do describe '.service_data' do before :each do @env = { 'SEMAPHORE' => 'yes?', 'BRANCH_NAME' => 'master', 'SEMAPHORE_BUILD_NUMBER' => '1234' } end it 'returns a hash of CI environment info' do expected_semaphore_hash = { name: 'semaphore', branch: 'master', build_identifier: '1234' } expect(Ci.service_data(@env)).to include expected_semaphore_hash end end end end
Version data entries
12 entries across 12 versions & 2 rubygems