Sha256: 89f43807a48dc2777a75210c8cf923f2d48cbfdcdd5a1a17c7f48e54638ea977

Contents?: true

Size: 905 Bytes

Versions: 188

Compression:

Stored size: 905 Bytes

Contents

describe KnapsackPro::Client::API::V1::BuildSubsets do
  describe '.create' do
    let(:commit_hash) { double }
    let(:branch) { double }
    let(:node_total) { double }
    let(:node_index) { double }
    let(:test_files) { double }

    subject do
      described_class.create(
        commit_hash: commit_hash,
        branch: branch,
        node_total: node_total,
        node_index: node_index,
        test_files: test_files
      )
    end

    it do
      action = double
      expect(KnapsackPro::Client::API::Action).to receive(:new).with({
        endpoint_path: '/v1/build_subsets',
        http_method: :post,
        request_hash: {
          commit_hash: commit_hash,
          branch: branch,
          node_total: node_total,
          node_index: node_index,
          test_files: test_files
        }
      }).and_return(action)
      expect(subject).to eq action
    end
  end
end

Version data entries

188 entries across 188 versions & 1 rubygems

Version Path
knapsack_pro-6.0.0 spec/knapsack_pro/client/api/v1/build_subsets_spec.rb
knapsack_pro-5.7.0 spec/knapsack_pro/client/api/v1/build_subsets_spec.rb
knapsack_pro-5.6.0 spec/knapsack_pro/client/api/v1/build_subsets_spec.rb
knapsack_pro-5.5.0 spec/knapsack_pro/client/api/v1/build_subsets_spec.rb
knapsack_pro-5.4.1 spec/knapsack_pro/client/api/v1/build_subsets_spec.rb
knapsack_pro-5.4.0 spec/knapsack_pro/client/api/v1/build_subsets_spec.rb
knapsack_pro-5.3.5 spec/knapsack_pro/client/api/v1/build_subsets_spec.rb
knapsack_pro-5.3.4 spec/knapsack_pro/client/api/v1/build_subsets_spec.rb
knapsack_pro-5.3.3 spec/knapsack_pro/client/api/v1/build_subsets_spec.rb
knapsack_pro-5.3.2 spec/knapsack_pro/client/api/v1/build_subsets_spec.rb
knapsack_pro-5.3.1 spec/knapsack_pro/client/api/v1/build_subsets_spec.rb
knapsack_pro-5.3.0 spec/knapsack_pro/client/api/v1/build_subsets_spec.rb
knapsack_pro-5.2.1 spec/knapsack_pro/client/api/v1/build_subsets_spec.rb
knapsack_pro-5.2.0 spec/knapsack_pro/client/api/v1/build_subsets_spec.rb
knapsack_pro-5.1.2 spec/knapsack_pro/client/api/v1/build_subsets_spec.rb
knapsack_pro-5.1.1 spec/knapsack_pro/client/api/v1/build_subsets_spec.rb
knapsack_pro-5.1.0 spec/knapsack_pro/client/api/v1/build_subsets_spec.rb
knapsack_pro-5.0.0 spec/knapsack_pro/client/api/v1/build_subsets_spec.rb
knapsack_pro-4.1.0 spec/knapsack_pro/client/api/v1/build_subsets_spec.rb
knapsack_pro-4.0.0 spec/knapsack_pro/client/api/v1/build_subsets_spec.rb