Commit 96ad70f5 authored by Mateus Ravedutti's avatar Mateus Ravedutti

Fix professional's cpf on test and add methods for model

parent 0dcae72f
Pipeline #6562 failed with stage
in 14 minutes and 45 seconds
class Professional < ApplicationRecord
belongs_to :account
# Associations #
belongs_to :account
# @return list of professional's columns
def self.keys
return [ :active, :registration ]
# @return all active professionals
def self.all_active
Professional.where(active: true)
......@@ -3,7 +3,7 @@ require 'test_helper'
class Api::V1::ProfessionalsControllerTest < ActionDispatch::IntegrationTest
describe "Token access" do
before do
@citizen= "123.456.789-04",
@citizen= "10845922904",
birth_date: "18/04/1997",
cep: "1234567",
email: "",
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment