diff options
author | Stan Hu <stanhu@gmail.com> | 2019-04-14 17:26:03 +0300 |
---|---|---|
committer | Oswaldo Ferreira <> | 2019-04-19 04:01:51 +0300 |
commit | 5d74c95c988cdd9c1c761de3a78c3dc191e4fe52 (patch) | |
tree | f6d0c19e4b591a08fc50ae1b2d4f9252f59ea747 /spec/controllers | |
parent | 54d64ec9f62f5c271b3ed649530a3a2eaa482206 (diff) |
Check that source and target branch exist
This ensures the return value is consistent if the source and/or
branch do not exist.
Diffstat (limited to 'spec/controllers')
-rw-r--r-- | spec/controllers/projects/compare_controller_spec.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/spec/controllers/projects/compare_controller_spec.rb b/spec/controllers/projects/compare_controller_spec.rb index 1818809518d..92380a2bf09 100644 --- a/spec/controllers/projects/compare_controller_spec.rb +++ b/spec/controllers/projects/compare_controller_spec.rb @@ -82,7 +82,7 @@ describe Projects::CompareController do show_request expect(response).to be_success - expect(assigns(:diffs).diff_files.to_a).to eq([]) + expect(assigns(:diffs)).to eq([]) expect(assigns(:commits)).to eq([]) end end |