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.0.0.rc2 spec/support/requirements_helper.rb
kontena-cli-1.0.0.rc1 spec/support/requirements_helper.rb
kontena-cli-1.0.0.pre4 spec/support/requirements_helper.rb
kontena-cli-1.0.0.pre3 spec/support/requirements_helper.rb
kontena-cli-1.0.0.pre2 spec/support/requirements_helper.rb
kontena-cli-1.0.0.pre1 spec/support/requirements_helper.rb
kontena-cli-0.17.0.pre5 spec/support/requirements_helper.rb
kontena-cli-0.17.0.pre4 spec/support/requirements_helper.rb
kontena-cli-0.17.0.pre3 spec/support/requirements_helper.rb
kontena-cli-0.17.0.pre2 spec/support/requirements_helper.rb
kontena-cli-0.17.0.pre1 spec/support/requirements_helper.rb
kontena-cli-0.16.3 spec/support/requirements_helper.rb
kontena-cli-0.16.3.rc1 spec/support/requirements_helper.rb
kontena-cli-0.16.2 spec/support/requirements_helper.rb
kontena-cli-0.16.2.rc1 spec/support/requirements_helper.rb
kontena-cli-0.16.1 spec/support/requirements_helper.rb
kontena-cli-0.16.1.rc3 spec/support/requirements_helper.rb
kontena-cli-0.16.1.rc2 spec/support/requirements_helper.rb
kontena-cli-0.16.1.rc1 spec/support/requirements_helper.rb
kontena-cli-0.16.0 spec/support/requirements_helper.rb