2017-10-11 05:17:03 -04:00
|
|
|
require 'rails_helper'
|
|
|
|
|
2018-09-10 22:15:06 -04:00
|
|
|
RSpec.describe "Running Sidekiq Jobs in Multisite", type: :multisite do
|
2017-10-11 05:45:19 -04:00
|
|
|
let(:conn) { RailsMultisite::ConnectionManagement }
|
|
|
|
|
2017-10-11 05:17:03 -04:00
|
|
|
it 'should revert back to the default connection' do
|
2018-09-10 22:15:06 -04:00
|
|
|
expect do
|
|
|
|
Jobs::DestroyOldDeletionStubs.new.perform({})
|
|
|
|
end.to_not change { RailsMultisite::ConnectionManagement.current_db }
|
2017-10-11 05:17:03 -04:00
|
|
|
end
|
|
|
|
end
|