Skip to content
Snippets Groups Projects
Commit b753dd43 authored by Lin Jen-Shin's avatar Lin Jen-Shin Committed by Stan Hu
Browse files

Fix token test by specifying a static token

parent b6d52b50
No related branches found
No related tags found
No related merge requests found
Pipeline #
Loading
Loading
@@ -17,8 +17,8 @@ describe Ci::Trigger, models: true do
expect(trigger.token).not_to be_nil
end
 
it 'does not set an random token if one provided' do
trigger = create(:ci_trigger, project: project)
it 'does not set a random token if one provided' do
trigger = create(:ci_trigger, project: project, token: 'token')
 
expect(trigger.token).to eq('token')
end
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment