Sha256: 2f7d24230d0059afc259e2735b2c5f007997e2b9a33b1197fe149ff5ae8cfd4f
Contents?: true
Size: 396 Bytes
Versions: 25
Compression:
Stored size: 396 Bytes
Contents
require "spec_helper" describe Codacy::Git do describe 'commit hash' do it 'recognizes CI environment variable.' do expected_git_hash = "123456789" original_val = ENV['TRAVIS_COMMIT'] ENV['TRAVIS_COMMIT'] = expected_git_hash result = Codacy::Git.commit_id ENV['TRAVIS_COMMIT'] = original_val expect(result).to eq expected_git_hash end end end
Version data entries
25 entries across 25 versions & 1 rubygems