Browse Source

test: improve test context descriptions in lettings_log_spec

fix-remove-attr-accessors-from-questions-in-cldc-1723
Sam Seed 2 years ago
parent
commit
10d8ef8dd0
  1. 4
      spec/features/lettings_log_spec.rb

4
spec/features/lettings_log_spec.rb

@ -123,7 +123,7 @@ RSpec.describe "Lettings Log Features" do
end
end
context "and there is more than 1 potential stock owner" do
context "and there are 2 or more potential stock owners" do
let!(:owning_org1) { create(:organisation, name: "Owning org 1") }
let!(:org_rel1) { create(:organisation_relationship, child_organisation: user.organisation, parent_organisation: owning_org1) }
@ -137,7 +137,7 @@ RSpec.describe "Lettings Log Features" do
expect(page).to have_content("Stock owner User org")
end
context "and there are more than 2 potential stock owners" do
context "and there are 3 or more potential stock owners" do
let!(:owning_org2) { create(:organisation, name: "Owning org 2") }
let!(:org_rel2) { create(:organisation_relationship, child_organisation: user.organisation, parent_organisation: owning_org2) }

Loading…
Cancel
Save