BigW Consortium Gitlab

Commit a39ff617 by Lin Jen-Shin

Fix token test by specifying a static token

parent 553c784b
......@@ -16,8 +16,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