Fix tests
This commit is contained in:
parent
842de4efc0
commit
9403827933
3 changed files with 3 additions and 3 deletions
|
@ -259,7 +259,7 @@ describe Ci::Build, models: true do
|
|||
let(:trigger) { create(:ci_trigger, project: project) }
|
||||
let(:trigger_request) { create(:ci_trigger_request_with_variables, pipeline: pipeline, trigger: trigger) }
|
||||
let(:user_trigger_variable) do
|
||||
{ key: :TRIGGER_KEY, value: 'TRIGGER_VALUE', public: false }
|
||||
{ key: :TRIGGER_KEY_1, value: 'TRIGGER_VALUE_1', public: false }
|
||||
end
|
||||
let(:predefined_trigger_variable) do
|
||||
{ key: 'CI_BUILD_TRIGGERED', value: 'true', public: true }
|
||||
|
|
|
@ -98,7 +98,7 @@ describe Ci::API::API do
|
|||
{ "key" => "CI_BUILD_TRIGGERED", "value" => "true", "public" => true },
|
||||
{ "key" => "DB_NAME", "value" => "postgres", "public" => true },
|
||||
{ "key" => "SECRET_KEY", "value" => "secret_value", "public" => false },
|
||||
{ "key" => "TRIGGER_KEY", "value" => "TRIGGER_VALUE", "public" => false }
|
||||
{ "key" => "TRIGGER_KEY_1", "value" => "TRIGGER_VALUE_1", "public" => false }
|
||||
)
|
||||
end
|
||||
|
||||
|
|
|
@ -59,7 +59,7 @@ describe 'projects/builds/show' do
|
|||
end
|
||||
|
||||
it 'shows trigger variables in separate lines' do
|
||||
expect(rendered).to have_css('code', text: variable_regexp('TRIGGER_KEY_1','TRIGGER_VALUE_1'))
|
||||
expect(rendered).to have_css('code', text: variable_regexp('TRIGGER_KEY_1', 'TRIGGER_VALUE_1'))
|
||||
expect(rendered).to have_css('code', text: variable_regexp('TRIGGER_KEY_2', 'TRIGGER_VALUE_2'))
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Reference in a new issue