Skip to content

Commit

Permalink
fixup! Add Submission#queue action
Browse files Browse the repository at this point in the history
  • Loading branch information
gbp committed May 1, 2018
1 parent 0f8f255 commit b153c53
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions spec/models/submission_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit b153c53

Please sign in to comment.