Project

General

Profile

« Previous | Next » 

Revision 9d43fc71

Added by Michael Moll almost 6 years ago

Fixes #19789 - fix Layout/SpaceAroundOperators cop

View differences:

test/models/taxonomix_test.rb
test "#used_organization_ids should not return organization for user with same id as of user_group which is assigned to host as owner." do
org = FactoryBot.create(:organization)
user = FactoryBot.create(:user, :id => 25, :organizations => [org])
ugroup = FactoryBot.create(:usergroup, :id=> 25)
ugroup = FactoryBot.create(:usergroup, :id => 25)
FactoryBot.create(:host, :owner => ugroup, :organization => org)
as_admin do
used_organizations = user.used_organization_ids

Also available in: Unified diff