Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKamil Trzcinski <ayufan@ayufan.eu>2016-11-17 14:08:28 +0300
committerKamil Trzcinski <ayufan@ayufan.eu>2016-11-17 14:08:28 +0300
commit43906336ff24e218cb1f7024d63a22367dd7e09a (patch)
tree326f69374123c68075942d45180b4c887376ba04 /spec/models/ci
parentd6e00f5373e24deaa7f143f5445ae9461ef5f615 (diff)
Fix tests and add has_environment?
Diffstat (limited to 'spec/models/ci')
-rw-r--r--spec/models/ci/build_spec.rb4
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}")