Commit 80713214 authored by Igor Drozdov's avatar Igor Drozdov

Remove cloud trait for license factory

It may conflict when a factory is calling `cloud` as an attr

Since it's used in one place, let's remove it
parent 6da49550
......@@ -52,10 +52,6 @@ FactoryBot.define do
trial { false }
end
trait :cloud do
cloud { true }
end
data do
attrs = [:gitlab_license]
attrs << :trial if trial
......
......@@ -121,7 +121,7 @@ RSpec.describe Gitlab::SeatLinkData do
describe '#should_sync_seats?' do
let_it_be(:historical_data, refind: true) { create(:historical_data, recorded_at: timestamp) }
let(:license) { build(:license, :cloud) }
let(:license) { build(:license, cloud: true) }
before do
allow(License).to receive(:current).and_return(license)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment