Skip to content

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: "abcd@gmail.com") }
let(:user1) { FactoryBot.create(:user, role_id: role.id, email: "pqrs@gmail.com") }
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