blob: c65bea9dbcfc6c308e688b0795d040a4c1056bbd (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
|
require 'spec_helper'
describe 'Triggers' do
before do
login_as :user
@project = FactoryGirl.create :ci_project
stub_js_gitlab_calls
visit ci_project_triggers_path(@project)
end
context 'create a trigger' do
before do
click_on 'Add Trigger'
expect(@project.triggers.count).to eq(1)
end
it 'contains trigger token' do
expect(page).to have_content(@project.triggers.first.token)
end
it 'revokes the trigger' do
click_on 'Revoke'
expect(@project.triggers.count).to eq(0)
end
end
end
|