|
|
|
@ -1364,6 +1364,12 @@ RSpec.describe LocationsController, type: :request do |
|
|
|
expect(lettings_log.location).to eq(nil) |
|
|
|
expect(lettings_log.location).to eq(nil) |
|
|
|
expect(lettings_log.scheme).to eq(nil) |
|
|
|
expect(lettings_log.scheme).to eq(nil) |
|
|
|
end |
|
|
|
end |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
it "marks log as needing attention" do |
|
|
|
|
|
|
|
expect(lettings_log.impacted_by_deactivation).to eq(nil) |
|
|
|
|
|
|
|
lettings_log.reload |
|
|
|
|
|
|
|
expect(lettings_log.impacted_by_deactivation).to eq(true) |
|
|
|
|
|
|
|
end |
|
|
|
end |
|
|
|
end |
|
|
|
|
|
|
|
|
|
|
|
context "and a log startdate is before location deactivation date" do |
|
|
|
context "and a log startdate is before location deactivation date" do |
|
|
|
@ -1376,6 +1382,12 @@ RSpec.describe LocationsController, type: :request do |
|
|
|
expect(lettings_log.location).to eq(location) |
|
|
|
expect(lettings_log.location).to eq(location) |
|
|
|
expect(lettings_log.scheme).to eq(scheme) |
|
|
|
expect(lettings_log.scheme).to eq(scheme) |
|
|
|
end |
|
|
|
end |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
it "does not mark log as needing attention" do |
|
|
|
|
|
|
|
expect(lettings_log.impacted_by_deactivation).to eq(nil) |
|
|
|
|
|
|
|
lettings_log.reload |
|
|
|
|
|
|
|
expect(lettings_log.impacted_by_deactivation).to eq(nil) |
|
|
|
|
|
|
|
end |
|
|
|
end |
|
|
|
end |
|
|
|
end |
|
|
|
end |
|
|
|
|
|
|
|
|
|
|
|
|