Commit 513c9e94 authored by Heinrich Lee Yu's avatar Heinrich Lee Yu Committed by Eugenia Grieff

Fix deployment spec

This model needs persisted environment and project for generating URLs
parent 3e6ccfcb
...@@ -5,7 +5,7 @@ require 'spec_helper' ...@@ -5,7 +5,7 @@ require 'spec_helper'
RSpec.describe Gitlab::DataBuilder::Deployment do RSpec.describe Gitlab::DataBuilder::Deployment do
describe '.build' do describe '.build' do
it 'returns the object kind for a deployment' do it 'returns the object kind for a deployment' do
deployment = build(:deployment) deployment = build(:deployment, deployable: nil, environment: create(:environment))
data = described_class.build(deployment) data = described_class.build(deployment)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment