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 ...@@ -17,8 +17,8 @@ describe Ci::Trigger, models: true do
expect(trigger.token).not_to be_nil expect(trigger.token).not_to be_nil
end end
it 'does not set an random token if one provided' do it 'does not set a random token if one provided' do
trigger = create(:ci_trigger, project: project) trigger = create(:ci_trigger, project: project, token: 'token')
expect(trigger.token).to eq('token') expect(trigger.token).to eq('token')
end 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