Commit a39ff617 authored by Lin Jen-Shin's avatar Lin Jen-Shin

Fix token test by specifying a static token

parent 553c784b
...@@ -16,8 +16,8 @@ describe Ci::Trigger, models: true do ...@@ -16,8 +16,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