diff options
-rw-r--r-- | app/views/builds/show.html.haml | 2 | ||||
-rw-r--r-- | spec/features/builds_spec.rb | 4 |
2 files changed, 4 insertions, 2 deletions
diff --git a/app/views/builds/show.html.haml b/app/views/builds/show.html.haml index 158ec27..5ddaa3c 100644 --- a/app/views/builds/show.html.haml +++ b/app/views/builds/show.html.haml @@ -104,7 +104,7 @@ #{time_ago_in_words(@build.finished_at)} ago %p %span.attr-name Runner: - - if @build.runner && current_user.is_admin + - if @build.runner && current_user && current_user.is_admin \#{link_to "##{@build.runner.id}", admin_runner_path(@build.runner.id)} - elsif @build.runner \##{@build.runner.id} diff --git a/spec/features/builds_spec.rb b/spec/features/builds_spec.rb index d8ad0ce..fcd7996 100644 --- a/spec/features/builds_spec.rb +++ b/spec/features/builds_spec.rb @@ -45,7 +45,9 @@ describe "Builds" do before do @project = FactoryGirl.create :public_project @commit = FactoryGirl.create :commit, project: @project - @build = FactoryGirl.create :build, commit: @commit + @runner = FactoryGirl.create :specific_runner + @build = FactoryGirl.create :build, commit: @commit, runner: @runner + stub_gitlab_calls visit project_build_path(@project, @build) end |