Skip to content

Commit

Permalink
Merge pull request #16368 from danidoni/avoid-querying-when-looking-f…
Browse files Browse the repository at this point in the history
…or-the-created-token

Avoid performing a querying for the token we just created
  • Loading branch information
eduardoj committed Jun 20, 2024
2 parents d725c4f + baf970d commit 3eb1f6d
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@
let(:form_parameters) { { token: { type: 'runservice', description: 'My first token' } } }

include_examples 'check for flashing a success'
it { is_expected.to redirect_to(token_path(Token.last)) }
it { is_expected.to redirect_to(token_path(assigns[:token])) }
end

context 'type is release, with project parameter, without package parameter' do
Expand Down

0 comments on commit 3eb1f6d

Please sign in to comment.