Sha256: ade96fbd23fb86ed19656f34b0bce6553ef8df59a681603de600c52aa52e33d5

Contents?: true

Size: 625 Bytes

Versions: 32

Compression:

Stored size: 625 Bytes

Contents

require "rails_helper"

describe Releaf::Root do
  describe ".configure_component" do
    it "adds new `Releaf::Root::Configuration` configuration with default controller resolver and assigns settings manager" do
      allow(Releaf::Root::Configuration).to receive(:new)
        .with(default_controller_resolver: Releaf::Root::DefaultControllerResolver).and_return("_new")
      expect(Releaf.application.config).to receive(:add_configuration).with("_new")
      expect(Releaf.application.config).to receive(:settings_manager=).with(Releaf::Root::SettingsManager)
      described_class.configure_component
    end
  end
end

Version data entries

32 entries across 32 versions & 1 rubygems

Version Path
releaf-core-2.0.0 spec/lib/releaf/root_spec.rb
releaf-core-1.1.22 spec/lib/releaf/root_spec.rb
releaf-core-1.1.21 spec/lib/releaf/root_spec.rb
releaf-core-1.1.20 spec/lib/releaf/root_spec.rb
releaf-core-1.1.19 spec/lib/releaf/root_spec.rb
releaf-core-1.1.18 spec/lib/releaf/root_spec.rb
releaf-core-1.1.17 spec/lib/releaf/root_spec.rb
releaf-core-1.1.16 spec/lib/releaf/root_spec.rb
releaf-core-1.1.15 spec/lib/releaf/root_spec.rb
releaf-core-1.1.14 spec/lib/releaf/root_spec.rb
releaf-core-1.1.13 spec/lib/releaf/root_spec.rb
releaf-core-1.1.12 spec/lib/releaf/root_spec.rb
releaf-core-1.1.11 spec/lib/releaf/root_spec.rb
releaf-core-1.1.10 spec/lib/releaf/root_spec.rb
releaf-core-1.1.9 spec/lib/releaf/root_spec.rb
releaf-core-1.1.8 spec/lib/releaf/root_spec.rb
releaf-core-1.1.7 spec/lib/releaf/root_spec.rb
releaf-core-1.1.6 spec/lib/releaf/root_spec.rb
releaf-core-1.1.5 spec/lib/releaf/root_spec.rb
releaf-core-1.1.4 spec/lib/releaf/root_spec.rb