diff options
author | Kamil Trzcinski <ayufan@ayufan.eu> | 2016-11-17 14:08:28 +0300 |
---|---|---|
committer | Kamil Trzcinski <ayufan@ayufan.eu> | 2016-11-17 14:08:28 +0300 |
commit | 43906336ff24e218cb1f7024d63a22367dd7e09a (patch) | |
tree | 326f69374123c68075942d45180b4c887376ba04 /spec/models/ci | |
parent | d6e00f5373e24deaa7f143f5445ae9461ef5f615 (diff) |
Fix tests and add has_environment?
Diffstat (limited to 'spec/models/ci')
-rw-r--r-- | spec/models/ci/build_spec.rb | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/spec/models/ci/build_spec.rb b/spec/models/ci/build_spec.rb index 2efe69d7adc..a7e90c8a381 100644 --- a/spec/models/ci/build_spec.rb +++ b/spec/models/ci/build_spec.rb @@ -4,14 +4,12 @@ describe Ci::Build, models: true do let(:build) { create(:ci_build) } let(:test_trace) { 'This is a test' } - describe 'ss' do it { is_expected.to belong_to(:runner) } it { is_expected.to belong_to(:trigger_request) } it { is_expected.to belong_to(:erased_by) } it { is_expected.to have_many(:deployments) } - end - + describe '#trace' do it 'obfuscates project runners token' do allow(build).to receive(:raw_trace).and_return("Test: #{build.project.runners_token}") |