summaryrefslogtreecommitdiff
path: root/spec/controllers
diff options
context:
space:
mode:
authorShinya Maeda <shinya@gitlab.com>2017-07-06 20:10:07 +0900
committerShinya Maeda <shinya@gitlab.com>2017-07-07 15:35:12 +0900
commit8c434a52fcfc92ffbd8bf9aa5ee2893724d3c666 (patch)
treedf3061c2d0cbbc4797e57cbe1c08f620a0950faf /spec/controllers
parent61d5b13888e9eb83cd86ca9849034d320b94d2b7 (diff)
downloadgitlab-ce-8c434a52fcfc92ffbd8bf9aa5ee2893724d3c666.tar.gz
gb nice catches
Diffstat (limited to 'spec/controllers')
-rw-r--r--spec/controllers/groups/variables_controller_spec.rb2
-rw-r--r--spec/controllers/projects/variables_controller_spec.rb2
2 files changed, 2 insertions, 2 deletions
diff --git a/spec/controllers/groups/variables_controller_spec.rb b/spec/controllers/groups/variables_controller_spec.rb
index c11fe93ffca..02f2fa46047 100644
--- a/spec/controllers/groups/variables_controller_spec.rb
+++ b/spec/controllers/groups/variables_controller_spec.rb
@@ -14,7 +14,7 @@ describe Groups::VariablesController do
it 'shows a success flash message' do
post :create, group_id: group, variable: { key: "one", value: "two" }
- expect(flash[:notice]).to include 'Variables were successfully updated.'
+ expect(flash[:notice]).to include 'Variable was successfully created.'
expect(response).to redirect_to(group_settings_ci_cd_path(group))
end
end
diff --git a/spec/controllers/projects/variables_controller_spec.rb b/spec/controllers/projects/variables_controller_spec.rb
index 0304ea6f93c..da06fcb7cfb 100644
--- a/spec/controllers/projects/variables_controller_spec.rb
+++ b/spec/controllers/projects/variables_controller_spec.rb
@@ -15,7 +15,7 @@ describe Projects::VariablesController do
post :create, namespace_id: project.namespace.to_param, project_id: project,
variable: { key: "one", value: "two" }
- expect(flash[:notice]).to include 'Variables were successfully updated.'
+ expect(flash[:notice]).to include 'Variable was successfully created.'
expect(response).to redirect_to(project_settings_ci_cd_path(project))
end
end