Sha256: c70c0b4e4d66b6c4888001175c5a0ec44ca5202dd945584f0abb2ad9b4c78de8

Contents?: true

Size: 255 Bytes

Versions: 15

Compression:

Stored size: 255 Bytes

Contents

class Test::Unit::TestCase
  def ensure_single_site_mode!
    @old_multi_sites_enabled = Site.multi_sites_enabled
    Site.multi_sites_enabled = false
  end

  def rollback_multi_site_mode!
    Site.multi_sites_enabled = @old_multi_sites_enabled
  end
end

Version data entries

15 entries across 15 versions & 2 rubygems

Version Path
adva-0.3.2 test/test_helper/ensure_single_site_mode.rb
adva-0.3.1 test/test_helper/ensure_single_site_mode.rb
adva-0.3.0 test/test_helper/ensure_single_site_mode.rb
adva-0.2.4 test/test_helper/ensure_single_site_mode.rb
adva-0.2.3 test/test_helper/ensure_single_site_mode.rb
adva-0.2.2 test/test_helper/ensure_single_site_mode.rb
adva-0.2.1 test/test_helper/ensure_single_site_mode.rb
adva-0.2.0 test/test_helper/ensure_single_site_mode.rb
adva-0.1.4 test/test_helper/ensure_single_site_mode.rb
adva-0.1.3 test/test_helper/ensure_single_site_mode.rb
adva-0.1.2 test/test_helper/ensure_single_site_mode.rb
adva-0.1.1 test/test_helper/ensure_single_site_mode.rb
adva-0.1.0 test/test_helper/ensure_single_site_mode.rb
adva_cms-0.0.1 test/test_helper/ensure_single_site_mode.rb
adva-0.0.1 adva_cms/test/test_helper/ensure_single_site_mode.rb