summaryrefslogtreecommitdiff
path: root/spec/serializers/status_entity_spec.rb
diff options
context:
space:
mode:
authorGrzegorz Bizon <grzesiek.bizon@gmail.com>2016-12-15 15:57:35 +0100
committerGrzegorz Bizon <grzesiek.bizon@gmail.com>2016-12-15 15:57:35 +0100
commitccea4727a6999d6abaea9e7a43bd1e015e43f1d2 (patch)
tree642dc24083c93ea1fa4eef89e20a108c8429167c /spec/serializers/status_entity_spec.rb
parentc7db5b3efa2e02c580bf60be78780103847e4ba4 (diff)
downloadgitlab-ce-ccea4727a6999d6abaea9e7a43bd1e015e43f1d2.tar.gz
Fix pipeline detailed status serializer and entities
Diffstat (limited to 'spec/serializers/status_entity_spec.rb')
-rw-r--r--spec/serializers/status_entity_spec.rb10
1 files changed, 4 insertions, 6 deletions
diff --git a/spec/serializers/status_entity_spec.rb b/spec/serializers/status_entity_spec.rb
index 5afa1c25a42..c3da61321de 100644
--- a/spec/serializers/status_entity_spec.rb
+++ b/spec/serializers/status_entity_spec.rb
@@ -1,12 +1,10 @@
require 'spec_helper'
describe StatusEntity do
- let(:entity) do
- described_class.new(status)
- end
+ let(:entity) { described_class.new(status) }
- let(:status) do # TODO, add statuses factory
- Gitlab::Ci::Status::Success.new(double('object'))
+ let(:status) do
+ Gitlab::Ci::Status::Success.new(double('object'), double('user'))
end
before do
@@ -17,7 +15,7 @@ describe StatusEntity do
subject { entity.as_json }
it 'contains status details' do
- expect(subject).to include :text, :icon, :label, :title
+ expect(subject).to include :text, :icon, :label
expect(subject).to include :has_details
expect(subject).to include :details_path
end