Skip to content

Conversation

@Krupshark
Copy link

@XaoGao, complite, check PR

@XaoGao XaoGao linked an issue Dec 20, 2023 that may be closed by this pull request
Copy link
Owner

@XaoGao XaoGao left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@Krupshark в целом все хорошо, но нужны так же тесты

@@ -1,3 +1,13 @@
class PagesController < ApplicationController
def welcome; end
def welcome
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Теперь нужно будет написать тест на этот метод

private

def page_for_signed_in(user)
{user.applicant? => vacancies_path, user.company? => resumes_path}[true]
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

нарушены стили robocop

ul.navbar-nav.me-auto.mb-2.mb-lg-0
li.nav-item
= link_to "Home", root_path, class: "nav-link fs-4 text-black"
= link_to "Home", home_link, class: "nav-link fs-4 text-black"
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ты проверил локально, что будет если user не зашел в аккаунт и нажал на кнопку ?

end
end

def home_link
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

нужен будет тест на метод

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Redirect welcome page

2 participants