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

Version Path
construi-0.6.0 vendor/bundle/ruby/1.9.1/gems/codeclimate-test-reporter-0.4.6/spec/lib/ci_spec.rb
construi-0.5.0 vendor/bundle/ruby/1.9.1/gems/codeclimate-test-reporter-0.4.6/spec/lib/ci_spec.rb
construi-0.4.0 vendor/bundle/ruby/1.9.1/gems/codeclimate-test-reporter-0.4.6/spec/lib/ci_spec.rb
construi-0.2.0 vendor/bundle/ruby/1.9.1/gems/codeclimate-test-reporter-0.4.6/spec/lib/ci_spec.rb
construi-0.1.0 vendor/bundle/ruby/1.9.1/gems/codeclimate-test-reporter-0.4.6/spec/lib/ci_spec.rb
codeclimate-test-reporter-0.4.7 spec/lib/ci_spec.rb
codeclimate-test-reporter-0.4.6 spec/lib/ci_spec.rb
codeclimate-test-reporter-0.4.5 spec/lib/ci_spec.rb
codeclimate-test-reporter-0.4.4 spec/lib/ci_spec.rb
codeclimate-test-reporter-0.4.3 spec/lib/ci_spec.rb
codeclimate-test-reporter-0.4.2 spec/lib/ci_spec.rb
codeclimate-test-reporter-0.4.1 spec/lib/ci_spec.rb