diff options
author | Pawel Chojnacki <pawel@chojnacki.ws> | 2017-04-24 22:34:36 +0200 |
---|---|---|
committer | Pawel Chojnacki <pawel@chojnacki.ws> | 2017-04-24 22:34:36 +0200 |
commit | 33f7c40f3f7d2b342dcaa839b7cd56599a573c65 (patch) | |
tree | 96bcf4f5018b5f5c91b082767129fe503c8a7ac3 /spec/serializers | |
parent | e057ad975c6ced8c9565fc8329db16b1ababcef8 (diff) | |
download | gitlab-ce-33f7c40f3f7d2b342dcaa839b7cd56599a573c65.tar.gz |
use represent_concise instead of separate entity
Diffstat (limited to 'spec/serializers')
-rw-r--r-- | spec/serializers/deployment_entity_detailed_spec.rb | 26 |
1 files changed, 0 insertions, 26 deletions
diff --git a/spec/serializers/deployment_entity_detailed_spec.rb b/spec/serializers/deployment_entity_detailed_spec.rb deleted file mode 100644 index d28e3fa0665..00000000000 --- a/spec/serializers/deployment_entity_detailed_spec.rb +++ /dev/null @@ -1,26 +0,0 @@ -require 'spec_helper' - -describe DeploymentEntityDetailed do - let(:user) { create(:user) } - let(:request) { double('request') } - let(:deployment) { create(:deployment) } - let(:entity) { described_class.new(deployment, request: request) } - subject { entity.as_json } - - before do - allow(request).to receive(:user).and_return(user) - end - - it 'exposes internal deployment id' do - expect(subject).to include(:iid) - end - - it 'exposes nested information about branch' do - expect(subject[:ref][:name]).to eq 'master' - expect(subject[:ref][:ref_path]).not_to be_empty - end - - it 'exposes creation date' do - expect(subject).to include(:created_at) - end -end |