Skip to content

Commit 6be6550

Browse files
committed
Assigning state is needed due to overall_state
StagingProject#overall_state uses state, assigning status only is not enough although status will be used everywhere soon, including overall_state.
1 parent 7af9260 commit 6be6550

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/api/spec/models/project/staging_project_spec.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,7 @@
9393

9494
context 'when request got revoked' do
9595
before do
96-
submit_request.update(status: 'revoked')
96+
submit_request.update(state: 'revoked', status: 'revoked')
9797
end
9898

9999
it { expect(staging_project.overall_state).to eq(:unacceptable) }

0 commit comments

Comments
 (0)