Commit d8e9a5cb authored by Mateus Ravedutti's avatar Mateus Ravedutti

Fix professional tests

parent fda3821a
Pipeline #6601 passed with stage
in 4 minutes and 35 seconds
class Professional < ApplicationRecord
# Associations #
belongs_to :account
has_one :citizen, through: :account
# @return list of professional's columns
def self.keys
class ProfessionalSerializer < ActiveModel::Serializer
ActiveModelSerializers.config.default_includes = '**'
attributes :id, :registration, :active
has_one :account
has_one :citizen, through: :account
......@@ -49,7 +49,7 @@ class Api::V1::ProfessionalsControllerTest < ActionDispatch::IntegrationTest
it "should correspond to the professional in the database" do
assert_equal @body["account"]["citizen"]["cpf"], Professional.find(
assert_equal @body["citizen"]["cpf"], Professional.find(
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