-
Notifications
You must be signed in to change notification settings - Fork 0
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
base: master
Are you sure you want to change the base?
Conversation
app/services/tickets/v1/show.rb
Outdated
|
||
def response | ||
@ticket.as_json( | ||
only: [:id, :status, :title, :description, :ticket_number, :ticket_type, :priority, :created_at, :resolved_at], |
There was a problem hiding this comment.
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.
There was a problem hiding this comment.
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]") } |
There was a problem hiding this comment.
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?
There was a problem hiding this comment.
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
There was a problem hiding this 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.
No description provided.