discourse/spec/lib/backup_restore
Krzysztof Kotlarek f530378df3 FIX: Restore for non-multisite is not raising an error on reconnect step (#8237)
That commit introduced a bug to the system: f69dacf979

Restore works fine for multisite, however, stopped working for non-multisite.

Reason for that was that `establish_connection` method got a check if the multisite instance is available:
```
    def self.instance
      @instance
    end

    def self.establish_connection(opts)
      @instance.establish_connection(opts) if @instance
    end
```
However, the reload method don't have that check
```
    def self.reload
      @instance = new(instance.config_filename)
    end
```

To solve it, let's ensure we are in a multisite environment before call reload
2019-10-24 11:46:22 +11:00
..
backuper_spec.rb REFACTOR: Clean up parameterized title 2019-07-18 15:49:16 -06:00
local_backup_store_spec.rb DEV: use #frozen_string_literal: true on all spec 2019-04-30 10:27:42 +10:00
restorer_spec.rb FIX: Restore for non-multisite is not raising an error on reconnect step (#8237) 2019-10-24 11:46:22 +11:00
s3_backup_store_spec.rb DEV: clean up dependencies in spec 2019-10-02 14:50:54 +10:00
shared_examples_for_backup_store.rb DEV: use #frozen_string_literal: true on all spec 2019-04-30 10:27:42 +10:00