Browse Source

Linting

pull/51/head
baarkerlounger 3 years ago
parent
commit
ae05c05dee
  1. 2
      app/models/case_log.rb
  2. 2
      spec/requests/case_log_controller_spec.rb

2
app/models/case_log.rb

@ -1,5 +1,5 @@
class CaseLogValidator < ActiveModel::Validator class CaseLogValidator < ActiveModel::Validator
# Methods to be used on save and continue need to be named 'validate_' # Methods to be used on save and continue need to be named 'validate_'
# followed by field name this is how the metaprogramming of the method # followed by field name this is how the metaprogramming of the method
# name being call in the validate method works. # name being call in the validate method works.

2
spec/requests/case_log_controller_spec.rb

@ -35,7 +35,7 @@ RSpec.describe CaseLogsController, type: :request do
"tenant_code": tenant_code, "tenant_code": tenant_code,
"tenant_age": tenant_age, "tenant_age": tenant_age,
"property_postcode": property_postcode, "property_postcode": property_postcode,
"property_number_of_times_relet": property_number_of_times_relet "property_number_of_times_relet": property_number_of_times_relet,
} }
end end

Loading…
Cancel
Save