summaryrefslogtreecommitdiff
path: root/spec/presenters/ci/group_variable_presenter_spec.rb
diff options
context:
space:
mode:
authorClement Ho <ClemMakesApps@gmail.com>2018-02-07 17:40:46 -0600
committerClement Ho <ClemMakesApps@gmail.com>2018-02-07 17:40:46 -0600
commitc1c74e608625eab143f44ef6940e64cca6af0a0c (patch)
treec5ca4a8a39946f54878a3ecde6b4adcda11d2d9b /spec/presenters/ci/group_variable_presenter_spec.rb
parentcecea7529fb37893af6bf514a53e239a3be1eea6 (diff)
parent8900b23eab6abd5a6c01278fa0da18d5bed98491 (diff)
downloadgitlab-ce-c1c74e608625eab143f44ef6940e64cca6af0a0c.tar.gz
Merge branch 'master' into fix-no-template
Diffstat (limited to 'spec/presenters/ci/group_variable_presenter_spec.rb')
-rw-r--r--spec/presenters/ci/group_variable_presenter_spec.rb17
1 files changed, 4 insertions, 13 deletions
diff --git a/spec/presenters/ci/group_variable_presenter_spec.rb b/spec/presenters/ci/group_variable_presenter_spec.rb
index d404028405b..cb58a757564 100644
--- a/spec/presenters/ci/group_variable_presenter_spec.rb
+++ b/spec/presenters/ci/group_variable_presenter_spec.rb
@@ -35,29 +35,20 @@ describe Ci::GroupVariablePresenter do
end
describe '#form_path' do
- context 'when variable is persisted' do
- subject { described_class.new(variable).form_path }
+ subject { described_class.new(variable).form_path }
- it { is_expected.to eq(group_variable_path(group, variable)) }
- end
-
- context 'when variable is not persisted' do
- let(:variable) { build(:ci_group_variable, group: group) }
- subject { described_class.new(variable).form_path }
-
- it { is_expected.to eq(group_variables_path(group)) }
- end
+ it { is_expected.to eq(group_settings_ci_cd_path(group)) }
end
describe '#edit_path' do
subject { described_class.new(variable).edit_path }
- it { is_expected.to eq(group_variable_path(group, variable)) }
+ it { is_expected.to eq(group_variables_path(group)) }
end
describe '#delete_path' do
subject { described_class.new(variable).delete_path }
- it { is_expected.to eq(group_variable_path(group, variable)) }
+ it { is_expected.to eq(group_variables_path(group)) }
end
end