From 94f2ab8beeda417b8e7dc6e6406d8ac29f02ccb5 Mon Sep 17 00:00:00 2001 From: Joachim Filip Ignacy Bartosik Date: Sat, 23 Jul 2011 19:10:18 +0200 Subject: Don't show "Start mentoring this recruit" button on non-recruit pages Fix bug: https://bugs.gentoo.org/show_bug.cgi?id=355723 --- app/views/users/show.dryml | 2 +- features/clean_ui.feature | 7 +++++++ 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/app/views/users/show.dryml b/app/views/users/show.dryml index b7bd5fe..f91b0f1 100644 --- a/app/views/users/show.dryml +++ b/app/views/users/show.dryml @@ -15,7 +15,7 @@ - +
diff --git a/features/clean_ui.feature b/features/clean_ui.feature index fd11103..053b5b1 100644 --- a/features/clean_ui.feature +++ b/features/clean_ui.feature @@ -125,3 +125,10 @@ Feature: Clean UI Given I am logged in as "mentor" who is "mentor" And user "mentor2" is mentor of "recruit" Then I should see explanation that I can't become mentor for "recruit" + + + Scenario: Don't show "recruit this recruit" button on non-recruit pages + Given I am logged in as "recruiter" who is "recruiter" + And user "recruiter2" who is "recruiter" + When I am on show "recruiter2" user page + Then I should not see tag -- cgit v1.2.3-65-gdbad