mirror of
https://github.com/discourse/discourse.git
synced 2025-02-25 18:55:32 -06:00
Fix the build.
This commit is contained in:
@@ -1,6 +1,24 @@
|
||||
require 'rails_helper'
|
||||
|
||||
RSpec.describe "Running Sidekiq Jobs in Multisite" do
|
||||
let(:conn) { RailsMultisite::ConnectionManagement }
|
||||
|
||||
before do
|
||||
conn.config_filename = "spec/fixtures/multisite/two_dbs.yml"
|
||||
conn.load_settings!
|
||||
conn.remove_class_variable(:@@current_db)
|
||||
end
|
||||
|
||||
after do
|
||||
conn.clear_settings!
|
||||
|
||||
[:@@db_spec_cache, :@@host_spec_cache, :@@default_spec].each do |class_variable|
|
||||
conn.remove_class_variable(class_variable)
|
||||
end
|
||||
|
||||
conn.set_current_db
|
||||
end
|
||||
|
||||
it 'should revert back to the default connection' do
|
||||
expect(RailsMultisite::ConnectionManagement.current_db)
|
||||
.to eq('default')
|
||||
|
||||
Reference in New Issue
Block a user