spec/server/grouped_workflow_spec.rb in cellect-server-1.2.0 vs spec/server/grouped_workflow_spec.rb in cellect-server-1.3.0
- old
+ new
@@ -6,10 +6,10 @@
context workflow_type do
it_behaves_like 'workflow', :workflow
let(:workflow){ GroupedWorkflow[workflow_type] }
let(:user){ workflow.user 123 }
let(:set_klass){ workflow.prioritized? ? DiffSet::PrioritySet : DiffSet::RandomSet }
- before(:each){ pass_until workflow, is: :ready }
+ before(:each){ pass_until_state_of workflow, is: :ready }
it 'should provide unseen from a random group for users' do
workflow.groups = { }
workflow.groups[1] = set_klass.new
expect(workflow.groups[1]).to receive(:subtract).with user.seen, 3