Browse Source

Fix uprn tests wip (#1644)

* Fix uprn tests

* remove uprn known check
pull/1643/head
kosiakkatrina 2 years ago committed by GitHub
parent
commit
7bb76d0226
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 5
      spec/shared/shared_log_examples.rb

5
spec/shared/shared_log_examples.rb

@ -55,7 +55,9 @@ RSpec.shared_examples "shared log examples" do |log_type|
log_type, log_type,
uprn: "123456789", uprn: "123456789",
uprn_confirmed: 1, uprn_confirmed: 1,
uprn_known: 1,
county: "county", county: "county",
postcode_full: nil,
) )
end end
@ -79,7 +81,6 @@ RSpec.shared_examples "shared log examples" do |log_type|
.and change(log, :postcode_full).from(nil).to("POSTCODE") .and change(log, :postcode_full).from(nil).to("POSTCODE")
.and change(log, :uprn_confirmed).from(1).to(nil) .and change(log, :uprn_confirmed).from(1).to(nil)
.and change(log, :county).from("county").to(nil) .and change(log, :county).from("county").to(nil)
.and change(log, :uprn_known).from(nil).to(1)
end end
end end
@ -92,7 +93,7 @@ RSpec.shared_examples "shared log examples" do |log_type|
end end
context "when service errors" do context "when service errors" do
let(:log) { create(log_type, uprn: "123456789", uprn_confirmed: 1) } let(:log) { build(log_type, :in_progress, uprn_known: 1, uprn: "123456789", uprn_confirmed: 1) }
let(:error_message) { "error" } let(:error_message) { "error" }
it "adds error to log" do it "adds error to log" do

Loading…
Cancel
Save