Sha256: 82373e97e28b9ff515f7269265531d3bedbabf76d865235e1c3fd446f70a1225
Contents?: true
Size: 924 Bytes
Versions: 15
Compression:
Stored size: 924 Bytes
Contents
describe KnapsackPro::Client::API::V1::BuildDistributions do describe '.subset' do let(:commit_hash) { double } let(:branch) { double } let(:node_total) { double } let(:node_index) { double } let(:test_files) { double } subject do described_class.subset( 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_distributions/subset', 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
15 entries across 15 versions & 1 rubygems