Project

General

Profile

Bug #25758

Updated by Rahul Bajaj 9 months ago

Many tests test check whether there is a org/loc present if not then they return []
which is not appropriate as after @tbrisker's changes, taxonomies can not be
blank. nil.

```

trait :with_subnet do
subnet do
FactoryBot.build(:subnet_ipv4,
:organizations => host ? [host.organization] : [],
:locations => host ? [host.location] : [])
end
end

```

The `host_related.rb` file has many such test cases.

Back