Commit b753dd43 authored by Lin Jen-Shin's avatar Lin Jen-Shin Committed by Stan Hu

Fix token test by specifying a static token

parent b6d52b50
......@@ -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
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment