Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--spec/features/projects/services/jira_service_spec.rb8
1 files changed, 6 insertions, 2 deletions
diff --git a/spec/features/projects/services/jira_service_spec.rb b/spec/features/projects/services/jira_service_spec.rb
index bf2ee2a10b1..8cd216c8fdb 100644
--- a/spec/features/projects/services/jira_service_spec.rb
+++ b/spec/features/projects/services/jira_service_spec.rb
@@ -31,7 +31,9 @@ feature 'Setup Jira service', :feature, :js do
describe 'user sets and activates Jira Service' do
context 'when Jira connection test succeeds' do
- before { stub_project_url }
+ before do
+ stub_project_url
+ end
it 'activates the JIRA service' do
click_link('JIRA')
@@ -45,7 +47,9 @@ feature 'Setup Jira service', :feature, :js do
end
context 'when Jira connection test fails' do
- before { stub_project_url.to_return(status: 401) }
+ before do
+ stub_project_url.to_return(status: 401)
+ end
it 'shows errors when some required fields are not filled in' do
click_link('JIRA')