Commit 290eeb28 authored by Bruno Freitas Tissei's avatar Bruno Freitas Tissei

Fix tests for CI

Signed-off-by: Bruno Freitas Tissei's avatarBruno Freitas Tissei <bft15@inf.ufpr.br>
parent e6e154b0
Pipeline #13603 passed with stage
in 3 minutes and 31 seconds
......@@ -19,7 +19,9 @@ class Sector < ApplicationRecord
validates_numericality_of :previous_notice, greater_than: 0,
less_than_or_equal_to: 2000000000
scope :all_active, -> { where(active: true) }
scope :all_active, -> {
where(active: true)
}
scope :local, ->(city_id) {
where(city_halls: {city_id: city_id}).includes(:city_hall)
......
......@@ -85,7 +85,7 @@ class Api::V1::ProfessionalsControllerTest < ActionDispatch::IntegrationTest
end
it "should not be permitted" do
assert_equal 403, response.status
assert_equal 404, response.status
end
it "should not create a professional" do
......
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