Browse Source

Rename trait

pull/3003/head
Manny Dinssa 2 months ago
parent
commit
b6a0fa4970
  1. 2
      spec/factories/lettings_log.rb
  2. 2
      spec/factories/sales_log.rb
  3. 4
      spec/lib/tasks/update_manual_address_entry_selected_prexisting_logs_spec.rb

2
spec/factories/lettings_log.rb

@ -237,7 +237,7 @@ FactoryBot.define do
log.postcode_full = "SW1 1AA"
end
end
trait :completed_without_address_fields do
trait :inprogress_without_address_fields do
completed
manual_address_entry_selected { false }
after(:build) do |log|

2
spec/factories/sales_log.rb

@ -252,7 +252,7 @@ FactoryBot.define do
log.postcode_full = "SW1 1AA"
end
end
trait :completed_without_address_fields do
trait :inprogress_without_address_fields do
completed
manual_address_entry_selected { false }
after(:build) do |log|

4
spec/lib/tasks/update_manual_address_entry_selected_prexisting_logs_spec.rb

@ -13,7 +13,7 @@ RSpec.describe "bulk_update:update_manual_address_entry_selected", type: :task d
end
let(:lettings_log_address_fields_not_entered) do
build(:lettings_log, :completed_without_address_fields, startdate: Time.zone.local(2024, 9, 1), needstype: 1)
build(:lettings_log, :inprogress_without_address_fields, startdate: Time.zone.local(2024, 9, 1), needstype: 1)
end
let(:lettings_log_address_manually_entered) do
@ -29,7 +29,7 @@ RSpec.describe "bulk_update:update_manual_address_entry_selected", type: :task d
end
let(:sales_log_address_fields_not_entered) do
build(:sales_log, :completed_without_address_fields, saledate: Time.zone.local(2024, 12, 30))
build(:sales_log, :inprogress_without_address_fields, saledate: Time.zone.local(2024, 12, 30))
end
let(:sales_log_address_manually_entered) do

Loading…
Cancel
Save