mirror of
https://gitlab.com/gitlab-org/gitlab-foss.git
synced 2025-08-03 16:04:30 +00:00
10 lines
271 B
Ruby
10 lines
271 B
Ruby
# frozen_string_literal: true
|
|
|
|
module StubCurrentOrganization
|
|
def stub_current_organization(organization)
|
|
allow_next_instance_of(Gitlab::Current::Organization) do |instance|
|
|
allow(instance).to receive(:organization).and_return(organization)
|
|
end
|
|
end
|
|
end
|