diff options
author | Hiroyuki Sato <sathiroyuki@gmail.com> | 2019-01-28 08:54:33 +0300 |
---|---|---|
committer | Hiroyuki Sato <sathiroyuki@gmail.com> | 2019-01-28 09:38:15 +0300 |
commit | 74946c19b4056052da4f5a9059ae73b2c0771d03 (patch) | |
tree | db19d52436443538ab6ab146d574866f85d79fd4 /spec/services/merge_requests/refresh_service_spec.rb | |
parent | ba0509ed9dfd8db4b0faa1c34e3dc2735fa85aa3 (diff) |
Move validation logic to service layer
Diffstat (limited to 'spec/services/merge_requests/refresh_service_spec.rb')
-rw-r--r-- | spec/services/merge_requests/refresh_service_spec.rb | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/spec/services/merge_requests/refresh_service_spec.rb b/spec/services/merge_requests/refresh_service_spec.rb index 57b8e71c2d5..9e9dc5a576c 100644 --- a/spec/services/merge_requests/refresh_service_spec.rb +++ b/spec/services/merge_requests/refresh_service_spec.rb @@ -156,9 +156,9 @@ describe MergeRequests::RefreshService do .and change { @fork_merge_request.merge_request_pipelines.count }.by(1) .and change { @another_merge_request.merge_request_pipelines.count }.by(0) - expect(@merge_request.has_commits?).to be true - expect(@fork_merge_request.has_commits?).to be true - expect(@another_merge_request.has_commits?).to be false + expect(@merge_request.has_commits?).to be_truthy + expect(@fork_merge_request.has_commits?).to be_truthy + expect(@another_merge_request.has_commits?).to be_falsy end context "when branch pipeline was created before a merge request pipline has been created" do |