diff options
author | Shinya Maeda <shinya@gitlab.com> | 2017-07-06 20:18:11 +0900 |
---|---|---|
committer | Shinya Maeda <shinya@gitlab.com> | 2017-07-07 15:35:12 +0900 |
commit | b7d17aab66343d94e5aa9c1680d6bbf5fdfc173f (patch) | |
tree | aedc11164c8e8cb41cde2d972b91cf05fa4971ab /spec/presenters | |
parent | 8c434a52fcfc92ffbd8bf9aa5ee2893724d3c666 (diff) | |
download | gitlab-ce-b7d17aab66343d94e5aa9c1680d6bbf5fdfc173f.tar.gz |
Use new project_variables_path in this MR
Diffstat (limited to 'spec/presenters')
-rw-r--r-- | spec/presenters/ci/variable_presenter_spec.rb | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/spec/presenters/ci/variable_presenter_spec.rb b/spec/presenters/ci/variable_presenter_spec.rb index 3b615c4bf36..9e6aae7bcad 100644 --- a/spec/presenters/ci/variable_presenter_spec.rb +++ b/spec/presenters/ci/variable_presenter_spec.rb @@ -38,26 +38,26 @@ describe Ci::VariablePresenter do context 'when variable is persisted' do subject { described_class.new(variable).form_path } - it { is_expected.to eq(namespace_project_variable_path(project.namespace, project, variable)) } + it { is_expected.to eq(project_variable_path(project, variable)) } end context 'when variable is not persisted' do let(:variable) { build(:ci_variable, project: project) } subject { described_class.new(variable).form_path } - it { is_expected.to eq(namespace_project_variables_path(project.namespace, project)) } + it { is_expected.to eq(project_variables_path(project)) } end end describe '#edit_path' do subject { described_class.new(variable).edit_path } - it { is_expected.to eq(namespace_project_variable_path(project.namespace, project, variable)) } + it { is_expected.to eq(project_variable_path(project, variable)) } end describe '#delete_path' do subject { described_class.new(variable).delete_path } - it { is_expected.to eq(namespace_project_variable_path(project.namespace, project, variable)) } + it { is_expected.to eq(project_variable_path(project, variable)) } end end |