Skip to content
Snippets Groups Projects
Commit ac5b250f authored by Tomasz Maczukin's avatar Tomasz Maczukin
Browse files

Fix error in Commit to Ci::Commit delegation

parent 13aef532
No related branches found
No related tags found
No related merge requests found
Loading
Loading
@@ -10,7 +10,7 @@ class Commit
attr_mentionable :safe_message, pipeline: :single_line
participant :author, :committer, :notes
 
delegate :duration, :started_at, :finished_at, :coverage, to: :ci_commit
delegate :duration, :started_at, :finished_at, :coverage, to: :ci_commit, allow_nil: true
 
attr_accessor :project
 
Loading
Loading
Loading
Loading
@@ -34,7 +34,7 @@ describe API::API, api: true do
end
end
 
describe "GET /projects:id/repository/commits/:sha" do
describe "GET /projects/:id/repository/commits/:sha" do
context "authorized user" do
it "should return a commit by sha" do
get api("/projects/#{project.id}/repository/commits/#{project.repository.commit.id}", user)
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment