summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorhttp://jneen.net/ <jneen@jneen.net>2017-06-26 19:24:12 -0700
committerhttp://jneen.net/ <jneen@jneen.net>2017-06-26 19:24:12 -0700
commita274359ecd485218ed7c42b750a43992ff3142ef (patch)
treee5639f6e952d358fd57ead9ac72c79f9767459a3
parent2f0a7088d33a1630c3e54812d10219b75cdf7bc4 (diff)
downloadgitlab-ce-a274359ecd485218ed7c42b750a43992ff3142ef.tar.gz
rubocop fix: don't use single line blocksbugfix/ruby2.4-compat
-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')