diff options
author | Shinya Maeda <shinya@gitlab.com> | 2017-09-01 17:54:07 +0900 |
---|---|---|
committer | Shinya Maeda <shinya@gitlab.com> | 2017-09-03 23:49:11 +0900 |
commit | d8478d166b96b7b40b27b162d6afd170a5c8d763 (patch) | |
tree | 14c50925c81abe01886e23a2583107bacef48b39 /spec/services | |
parent | 5547baa3eb1979e8de36f00174c1f98ddc3dabd0 (diff) | |
download | gitlab-ce-d8478d166b96b7b40b27b162d6afd170a5c8d763.tar.gz |
Fix spec
Diffstat (limited to 'spec/services')
-rw-r--r-- | spec/services/ci/retry_build_service_spec.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/spec/services/ci/retry_build_service_spec.rb b/spec/services/ci/retry_build_service_spec.rb index d32ed9c33ee..7c9c117bf71 100644 --- a/spec/services/ci/retry_build_service_spec.rb +++ b/spec/services/ci/retry_build_service_spec.rb @@ -22,7 +22,7 @@ describe Ci::RetryBuildService do %i[type lock_version target_url base_tags commit_id deployments erased_by_id last_deployment project_id runner_id tag_taggings taggings tags trigger_request_id - user_id auto_canceled_by_id retried protected].freeze + user_id auto_canceled_by_id retried].freeze shared_examples 'build duplication' do let(:stage) do @@ -48,7 +48,7 @@ describe Ci::RetryBuildService do describe 'clone accessors' do CLONE_ACCESSORS.each do |attribute| it "clones #{attribute} build attribute" do - expect(new_build.send(attribute)).to be_present + expect(new_build.send(attribute)).not_to be_nil expect(new_build.send(attribute)).to eq build.send(attribute) end end |