spec/server/workflow_spec.rb in cellect-server-1.2.0 vs spec/server/workflow_spec.rb in cellect-server-1.3.0

- old
+ new

@@ -10,10 +10,10 @@ SET_TYPES.each do |workflow_type| context workflow_type do it_behaves_like 'workflow', :workflow let(:workflow){ Workflow[workflow_type] } let(:user){ workflow.user 123 } - before(:each){ pass_until workflow, is: :ready } + before(:each){ pass_until_state_of workflow, is: :ready } it 'should provide unseen for users' do expect(workflow.subjects).to receive(:subtract).with user.seen, 3 workflow.unseen_for 123, limit: 3 end