Sha256: e14cdbb414e5f562f7f199f5974eb714db4921b65d2dff5f8c59dccf8495f249
Contents?: true
Size: 852 Bytes
Versions: 7
Compression:
Stored size: 852 Bytes
Contents
require 'spec_helper' module Cellect::Server describe API do include_context 'API' { 'Ungrouped' => nil, 'Grouped' => 'grouped' }.each_pair do |grouping_type, grouping| SET_TYPES.shuffle.each do |set_type| context "#{ grouping_type } #{ set_type }" do let(:workflow_type){ [grouping, set_type].compact.join '_' } let(:workflow){ Workflow[workflow_type] } before(:each){ pass_until workflow, is: :ready } it 'should load users' do async_workflow = double expect(workflow).to receive(:async).and_return async_workflow expect(async_workflow).to receive(:user).with 123 post "/workflows/#{ workflow_type }/users/123/load" expect(last_response.status).to eq 201 end end end end end end
Version data entries
7 entries across 7 versions & 1 rubygems