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:
authorJames Lopez <james@jameslopez.es>2016-11-15 11:39:45 +0300
committerJames Lopez <james@jameslopez.es>2016-11-17 10:22:58 +0300
commit6a2737e6a82875311f71f451939b2732562533d4 (patch)
tree00ea2627d1103ba0c15375a570ff923b0296c790 /spec/serializers/analytics_build_entity_spec.rb
parent0ddf825ddf7bc480004919762b187390d0b900e9 (diff)
WIP - refactor events to use a generic build entity for some of the hybrid events
Diffstat (limited to 'spec/serializers/analytics_build_entity_spec.rb')
-rw-r--r--spec/serializers/analytics_build_entity_spec.rb6
1 files changed, 3 insertions, 3 deletions
diff --git a/spec/serializers/analytics_build_entity_spec.rb b/spec/serializers/analytics_build_entity_spec.rb
index 24040034f68..9ac6f20fd3c 100644
--- a/spec/serializers/analytics_build_entity_spec.rb
+++ b/spec/serializers/analytics_build_entity_spec.rb
@@ -5,14 +5,14 @@ describe AnalyticsBuildEntity do
described_class.new(build, request: double)
end
- context 'when build is a regular job' do
+ context 'build with an author' do
let(:user) { create(:user) }
let(:build) { create(:ci_build, author: user) }
subject { entity.as_json }
- it 'contains URLs' do
- expect(subject).to include(:url, :branch_url, :commit_url)
+ it 'contains the URL' do
+ expect(subject).to include(:url)
end
it 'contains the author' do