diff options
author | Kamil Trzcinski <ayufan@ayufan.eu> | 2016-04-17 09:32:49 -0400 |
---|---|---|
committer | Kamil Trzcinski <ayufan@ayufan.eu> | 2016-04-17 09:32:49 -0400 |
commit | 433ca7390d800a2fda3e3c5eb29272d0ba2d9df6 (patch) | |
tree | d0c815f3019582543d8be3e421258a4401db57ec /spec/requests | |
parent | 1c5b172abb1279a25731d35ee913daa91738606d (diff) | |
download | gitlab-ce-433ca7390d800a2fda3e3c5eb29272d0ba2d9df6.tar.gz |
Make some logic less twistable
Diffstat (limited to 'spec/requests')
-rw-r--r-- | spec/requests/api/commits_spec.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/spec/requests/api/commits_spec.rb b/spec/requests/api/commits_spec.rb index 25377a40442..e28998d51b5 100644 --- a/spec/requests/api/commits_spec.rb +++ b/spec/requests/api/commits_spec.rb @@ -48,7 +48,7 @@ describe API::API, api: true do expect(response.status).to eq(404) end - it "should return not_found for CI status" do + it "should return nil for commit without CI" do get api("/projects/#{project.id}/repository/commits/#{project.repository.commit.id}", user) expect(response.status).to eq(200) expect(json_response['status']).to be_nil |