|
|
@ -3,9 +3,11 @@ require "rails_helper" |
|
|
|
RSpec.describe LettingsLogSummaryComponent, type: :component do |
|
|
|
RSpec.describe LettingsLogSummaryComponent, type: :component do |
|
|
|
let(:support_user) { FactoryBot.create(:user, :support) } |
|
|
|
let(:support_user) { FactoryBot.create(:user, :support) } |
|
|
|
let(:coordinator_user) { FactoryBot.create(:user) } |
|
|
|
let(:coordinator_user) { FactoryBot.create(:user) } |
|
|
|
|
|
|
|
let(:organisation) { create(:organisation, name: "MHCLG") } |
|
|
|
|
|
|
|
let(:log_user) { create(:user, name: "Danny Rojas", organisation:)} |
|
|
|
let(:propcode) { "P3647" } |
|
|
|
let(:propcode) { "P3647" } |
|
|
|
let(:tenancycode) { "T62863" } |
|
|
|
let(:tenancycode) { "T62863" } |
|
|
|
let(:lettings_log) { FactoryBot.create(:lettings_log, needstype: 1, tenancycode:, propcode:, startdate: Time.zone.today) } |
|
|
|
let(:lettings_log) { FactoryBot.create(:lettings_log, assigned_to: log_user, needstype: 1, tenancycode:, propcode:, startdate: Time.zone.today) } |
|
|
|
|
|
|
|
|
|
|
|
context "when rendering lettings log for a support user" do |
|
|
|
context "when rendering lettings log for a support user" do |
|
|
|
it "shows the log summary with organisational relationships" do |
|
|
|
it "shows the log summary with organisational relationships" do |
|
|
|