Sha256: d75b352fb21045dc72eb6efc8b01219425a7a871515d6e67f35997567cbb806a

Contents?: true

Size: 820 Bytes

Versions: 52

Compression:

Stored size: 820 Bytes

Contents

module RequirementsHelper

  def self.included(base)
    base.extend ClassMethods
  end

  module ClassMethods
    def expect_to_require_current_master
      describe "prerequisites" do
        it "should require current master" do
          expect(described_class.requires_current_master?).to be_truthy
        end
      end
    end

    def expect_to_require_current_grid
      describe "prerequisites" do
        it "should require current grid" do
          expect(described_class.requires_current_current_grid?).to be_truthy
        end
      end
    end

    def expect_to_require_current_master_token
      describe "prerequisites" do
        it "should require current master token" do
          expect(described_class.requires_current_current_master_token?).to be_truthy
        end
      end
    end
  end
end

Version data entries

52 entries across 52 versions & 1 rubygems

Version Path
kontena-cli-1.1.0.pre1 spec/support/requirements_helper.rb
kontena-cli-1.0.6 spec/support/requirements_helper.rb
kontena-cli-1.0.6.rc1 spec/support/requirements_helper.rb
kontena-cli-1.0.5 spec/support/requirements_helper.rb
kontena-cli-1.0.5.rc1 spec/support/requirements_helper.rb
kontena-cli-1.0.5.pre1 spec/support/requirements_helper.rb
kontena-cli-1.0.4 spec/support/requirements_helper.rb
kontena-cli-1.0.4.rc2 spec/support/requirements_helper.rb
kontena-cli-1.0.4.rc1 spec/support/requirements_helper.rb
kontena-cli-1.0.3 spec/support/requirements_helper.rb
kontena-cli-1.0.3.rc1 spec/support/requirements_helper.rb
kontena-cli-1.0.2 spec/support/requirements_helper.rb
kontena-cli-1.0.2.rc2 spec/support/requirements_helper.rb
kontena-cli-1.0.2.rc1 spec/support/requirements_helper.rb
kontena-cli-1.0.2.pre1 spec/support/requirements_helper.rb
kontena-cli-1.0.1 spec/support/requirements_helper.rb
kontena-cli-1.0.1.rc3 spec/support/requirements_helper.rb
kontena-cli-1.0.1.rc2 spec/support/requirements_helper.rb
kontena-cli-1.0.1.rc1 spec/support/requirements_helper.rb
kontena-cli-1.0.0 spec/support/requirements_helper.rb