From b153c53ec798255124b90f30088b92ed4e8a762a Mon Sep 17 00:00:00 2001 From: Graeme Porteous Date: Tue, 1 May 2018 10:00:24 +0100 Subject: [PATCH] fixup! Add Submission#queue action --- spec/models/submission_spec.rb | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/spec/models/submission_spec.rb b/spec/models/submission_spec.rb index 9580deae..880bc58d 100644 --- a/spec/models/submission_spec.rb +++ b/spec/models/submission_spec.rb @@ -23,4 +23,13 @@ expect(submission.errors[:state]).to_not be_empty end end + + describe '#queue' do + let(:submission) { build(:submission) } + + it 'changes the state' do + expect { submission.queue }.to change(submission, :state). + to(Submission::QUEUED) + end + end end