summaryrefslogtreecommitdiff
path: root/spec/models/commit_status_spec.rb
diff options
context:
space:
mode:
authorGrzegorz Bizon <grzesiek.bizon@gmail.com>2016-12-14 10:21:16 +0100
committerGrzegorz Bizon <grzesiek.bizon@gmail.com>2016-12-14 10:21:16 +0100
commitac115a9e1f106863112ca9daf463a8f5b8db7d0a (patch)
treeb0699a35af173c106e60835684b4086ad4adafa5 /spec/models/commit_status_spec.rb
parent309580bd41a178a02894d399e3cd45659a8ba7a7 (diff)
downloadgitlab-ce-ac115a9e1f106863112ca9daf463a8f5b8db7d0a.tar.gz
Add some missing tests for detailed status methodsbuild-statuses
Diffstat (limited to 'spec/models/commit_status_spec.rb')
-rw-r--r--spec/models/commit_status_spec.rb9
1 files changed, 9 insertions, 0 deletions
diff --git a/spec/models/commit_status_spec.rb b/spec/models/commit_status_spec.rb
index 1ec08c2a9d0..701f3323c0f 100644
--- a/spec/models/commit_status_spec.rb
+++ b/spec/models/commit_status_spec.rb
@@ -234,4 +234,13 @@ describe CommitStatus, models: true do
end
end
end
+
+ describe '#detailed_status' do
+ let(:user) { create(:user) }
+
+ it 'returns a detailed status' do
+ expect(commit_status.detailed_status(user))
+ .to be_a Gitlab::Ci::Status::Success
+ end
+ end
end