Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added test for event#eligible_people #742

Closed
wants to merge 2 commits into from
Closed

Added test for event#eligible_people #742

wants to merge 2 commits into from

Conversation

vsrnth
Copy link
Contributor

@vsrnth vsrnth commented Oct 7, 2018

Should fix #622
event = create(:event, min_title: "Director") - creates an event with minimum title Director
user = FactoryBot.create(:person, title: "Director") - creates a user with the title Director

expect(event.eligible_people).to include(user) - This line is supposed to evaluate to true, since the user is a Director.

But it does not evaluate to true.

Locally I tried changing the event minimum title to Recruiter, Officer and test still continued to fail.

Putting this PR up looking for some guidance.

@kgf
Copy link
Member

kgf commented Oct 7, 2018

Did you put that user into the same department as the event?

@kgf
Copy link
Member

kgf commented Oct 7, 2018

@vsrnth vsrnth closed this by deleting the head repository Apr 6, 2023
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.

Need tests for event#eligible_people
2 participants