Sha256: 34d324620f18a6d91bb85fd571dc1d07370dcbb3162ef65d594f556b11bbb039
Contents?: true
Size: 840 Bytes
Versions: 6
Compression:
Stored size: 840 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 workflow.should_receive(:async).and_return async_workflow async_workflow.should_receive(:user).with 123 post "/workflows/#{ workflow_type }/users/123/load" last_response.status.should == 201 end end end end end end
Version data entries
6 entries across 6 versions & 1 rubygems