Sha256: a42e4502d736d93b67a9caef2dc3a4c4924dbc8f9a4a50f6e0eca1c0f72082b0

Contents?: true

Size: 688 Bytes

Versions: 58

Compression:

Stored size: 688 Bytes

Contents

describe Kubes::Kubectl::Batch do
  let(:batch) { described_class.new(options) }
  let(:options) { {} }

  describe "batch" do
    let(:files) do
      %w[
        .kubes/output/clock/deployment.yaml
        .kubes/output/web/deployment.yaml
        .kubes/output/web/ingress.yaml
        .kubes/output/web/service.yaml
      ]
    end

    it "sorted_files" do
      allow(batch).to receive(:files).and_return(files)
      expect(batch.sorted_files).to eq(
        [".kubes/output/clock/deployment.yaml",
         ".kubes/output/web/service.yaml",
         ".kubes/output/web/deployment.yaml",
         ".kubes/output/web/ingress.yaml"]) # ingress should be at the end
    end
  end
end

Version data entries

58 entries across 58 versions & 1 rubygems

Version Path
kubes-0.9.3 spec/kubes/kubectl/batch_spec.rb
kubes-0.9.2 spec/kubes/kubectl/batch_spec.rb
kubes-0.9.1 spec/kubes/kubectl/batch_spec.rb
kubes-0.9.0 spec/kubes/kubectl/batch_spec.rb
kubes-0.8.10 spec/kubes/kubectl/batch_spec.rb
kubes-0.8.9 spec/kubes/kubectl/batch_spec.rb
kubes-0.8.8 spec/kubes/kubectl/batch_spec.rb
kubes-0.8.7 spec/kubes/kubectl/batch_spec.rb
kubes-0.8.6 spec/kubes/kubectl/batch_spec.rb
kubes-0.8.5 spec/kubes/kubectl/batch_spec.rb
kubes-0.8.4 spec/kubes/kubectl/batch_spec.rb
kubes-0.8.3 spec/kubes/kubectl/batch_spec.rb
kubes-0.8.2 spec/kubes/kubectl/batch_spec.rb
kubes-0.8.1 spec/kubes/kubectl/batch_spec.rb
kubes-0.8.0 spec/kubes/kubectl/batch_spec.rb
kubes-0.7.10 spec/kubes/kubectl/batch_spec.rb
kubes-0.7.9 spec/kubes/kubectl/batch_spec.rb
kubes-0.7.8 spec/kubes/kubectl/batch_spec.rb
kubes-0.7.7 spec/kubes/kubectl/batch_spec.rb
kubes-0.7.6 spec/kubes/kubectl/batch_spec.rb