summaryrefslogtreecommitdiff
path: root/spec/models/ci
diff options
context:
space:
mode:
authorKamil Trzcinski <ayufan@ayufan.eu>2016-11-17 00:23:05 +0100
committerKamil Trzcinski <ayufan@ayufan.eu>2016-11-17 00:23:05 +0100
commitd6e00f5373e24deaa7f143f5445ae9461ef5f615 (patch)
tree59d784dd10d349d54fda8924d00a79946bf1bfdb /spec/models/ci
parent2b8292cd49dbc68b02f46f865b7115191bf2de07 (diff)
downloadgitlab-ce-d6e00f5373e24deaa7f143f5445ae9461ef5f615.tar.gz
Improve specs and add missing cases that were not supported
Diffstat (limited to 'spec/models/ci')
-rw-r--r--spec/models/ci/build_spec.rb8
1 files changed, 8 insertions, 0 deletions
diff --git a/spec/models/ci/build_spec.rb b/spec/models/ci/build_spec.rb
index a37a00f461a..2efe69d7adc 100644
--- a/spec/models/ci/build_spec.rb
+++ b/spec/models/ci/build_spec.rb
@@ -4,6 +4,14 @@ 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}")