Sha256: 45f637906c82d9be67789ef3b5d09463d6c51fdbdbf0560f6b726858fc87ee06

Contents?: true

Size: 1.91 KB

Versions: 15

Compression:

Stored size: 1.91 KB

Contents

require 'spec_helper'

describe MB::Mixin::Services do
  subject do
    Class.new do
      include MB::Mixin::Services
    end.new
  end

  describe "#bootstrap_manager" do
    it "returns an instance of MB::Bootstrap::Manager" do
      subject.bootstrap_manager.should be_a(MB::Bootstrap::Manager)
    end
  end

  describe "#command_invoker" do
    it "returns an instance of MB::CommandInvoker" do
      subject.command_invoker.should be_a(MB::CommandInvoker)
    end
  end

  describe "#config_manager" do
    it "returns an instance of MB::ConfigManager" do
      subject.config_manager.should be_a(MB::ConfigManager)
    end
  end

  describe "#environment_manager" do
    it "returns an instance of MB::EnvironmentManager" do
      subject.environment_manager.should be_a(MB::EnvironmentManager)
    end
  end

  describe "#job_manager" do
    it "returns an instance of MB::JobManager" do
      subject.job_manager.should be_a(MB::JobManager)
    end
  end

  describe "#provisioner_manager" do
    it "returns an instance of MB::Provisioner::Manager" do
      subject.provisioner_manager.should be_a(MB::Provisioner::Manager)
    end
  end

  describe "#node_querier" do
    it "returns an instance of MB::NodeQuerier" do
      subject.node_querier.should be_a(MB::NodeQuerier)
    end
  end

  describe "#plugin_manager" do
    it "returns an instance of MB::PluginManager" do
      subject.plugin_manager.should be_a(MB::PluginManager)
    end
  end

  describe "#provisioner_manager" do
    it "returns an instance of MB::Provisioner::Manager" do
      subject.provisioner_manager.should be_a(MB::Provisioner::Manager)
    end
  end

  describe "#upgrade_manager" do
    it "returns an instance of MB::Upgrade::Manager" do
      subject.upgrade_manager.should be_a(MB::Upgrade::Manager)
    end
  end

  describe "#ridley" do
    it "returns an instance of Ridley::Client" do
      subject.ridley.should be_a(Ridley::Client)
    end
  end
end

Version data entries

15 entries across 15 versions & 1 rubygems

Version Path
motherbrain-1.5.0 spec/unit/mb/mixin/services_spec.rb
motherbrain-1.4.0 spec/unit/mb/mixin/services_spec.rb
motherbrain-1.3.0 spec/unit/mb/mixin/services_spec.rb
motherbrain-1.2.1 spec/unit/mb/mixin/services_spec.rb
motherbrain-1.2.0 spec/unit/mb/mixin/services_spec.rb
motherbrain-1.1.3 spec/unit/mb/mixin/services_spec.rb
motherbrain-1.1.2 spec/unit/mb/mixin/services_spec.rb
motherbrain-1.1.1 spec/unit/mb/mixin/services_spec.rb
motherbrain-1.1.0 spec/unit/mb/mixin/services_spec.rb
motherbrain-1.0.0 spec/unit/mb/mixin/services_spec.rb
motherbrain-0.14.5 spec/unit/mb/mixin/services_spec.rb
motherbrain-0.14.4 spec/unit/mb/mixin/services_spec.rb
motherbrain-0.14.3 spec/unit/mb/mixin/services_spec.rb
motherbrain-0.14.2 spec/unit/mb/mixin/services_spec.rb
motherbrain-0.13.1 spec/unit/mb/mixin/services_spec.rb