diff options
author | Micaël Bergeron <mbergeron@gitlab.com> | 2018-02-28 12:21:40 -0500 |
---|---|---|
committer | Micaël Bergeron <mbergeron@gitlab.com> | 2018-03-01 10:40:40 -0500 |
commit | 508938873cb00b8eed53d6aacdd0e0940d8425d9 (patch) | |
tree | 1812200376a55f78ada583802f06dd9dd76d48fc /spec/models | |
parent | d59210de58dc8a377130cfdd3fc3197a4ca7bb1d (diff) | |
download | gitlab-ce-508938873cb00b8eed53d6aacdd0e0940d8425d9.tar.gz |
remove the license check
Diffstat (limited to 'spec/models')
-rw-r--r-- | spec/models/lfs_object_spec.rb | 25 |
1 files changed, 0 insertions, 25 deletions
diff --git a/spec/models/lfs_object_spec.rb b/spec/models/lfs_object_spec.rb index 87f4daab9be..a182116d637 100644 --- a/spec/models/lfs_object_spec.rb +++ b/spec/models/lfs_object_spec.rb @@ -21,19 +21,6 @@ describe LfsObject do end end - describe '#destroy' do - subject { create(:lfs_object, :with_file) } - - context 'when running in a Geo primary node' do - set(:primary) { create(:geo_node, :primary) } - set(:secondary) { create(:geo_node) } - - it 'logs an event to the Geo event log' do - expect { subject.destroy }.to change(Geo::LfsObjectDeletedEvent, :count).by(1) - end - end - end - describe '#schedule_background_upload' do before do stub_lfs_setting(enabled: true) @@ -80,18 +67,6 @@ describe LfsObject do lfs_object.save! end end - - context 'when is unlicensed' do - before do - stub_lfs_object_storage(background_upload: true, licensed: false) - end - - it 'does not schedule the migration' do - expect(ObjectStorage::BackgroundMoveWorker).not_to receive(:perform_async) - - subject - end - end end context 'when background upload is disabled' do |