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

Ticket Show API done #27

Open
wants to merge 3 commits into
base: master
Choose a base branch
from
Open

Ticket Show API done #27

wants to merge 3 commits into from

Conversation

shubhh139
Copy link
Contributor

No description provided.


def response
@ticket.as_json(
only: [:id, :status, :title, :description, :ticket_number, :ticket_type, :priority, :created_at, :resolved_at],
Copy link
Contributor

@varungadde99 varungadde99 Sep 19, 2022

Choose a reason for hiding this comment

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

@sk1384 please format the method. The indentation is not proper.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

@varungadde99 changes done

let(:user) { FactoryBot.create(:user, role_id: role.id, department_id: department.id) }
let(:user1) { FactoryBot.create(:user, role_id: role.id) }
let(:user) { FactoryBot.create(:user, role_id: role.id, email: "[email protected]") }
let(:user1) { FactoryBot.create(:user, role_id: role.id, email: "[email protected]") }
Copy link
Contributor

Choose a reason for hiding this comment

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

Is there any issue faced in the spec for for using Faker? - we have hard coded emails for creating user - we can use the factory right?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Yes but there is validation for using same email @varungadde99

Copy link
Contributor

@varungadde99 varungadde99 left a comment

Choose a reason for hiding this comment

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

Please check - comments added.

@Selectus2 Selectus2 closed this Oct 6, 2023
@Selectus2 Selectus2 reopened this Oct 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.

3 participants