summaryrefslogtreecommitdiff
path: root/spec
diff options
context:
space:
mode:
authorGrzegorz Bizon <grzesiek.bizon@gmail.com>2016-12-15 13:41:46 +0100
committerGrzegorz Bizon <grzesiek.bizon@gmail.com>2016-12-15 13:41:46 +0100
commit70c0a76cad4c7ce5656c97ac81b4caa21318e961 (patch)
treef40697d9ecb70507ebcbf73e4890535c6a419e72 /spec
parent01c8499a791a9179a0ae875ad26a1fa125e7fe4c (diff)
downloadgitlab-ce-70c0a76cad4c7ce5656c97ac81b4caa21318e961.tar.gz
Fix rubocop offenses in code related to pipelines
Diffstat (limited to 'spec')
-rw-r--r--spec/features/projects/pipelines/pipelines_spec.rb9
1 files changed, 3 insertions, 6 deletions
diff --git a/spec/features/projects/pipelines/pipelines_spec.rb b/spec/features/projects/pipelines/pipelines_spec.rb
index f9854bb3fad..c8554c1a975 100644
--- a/spec/features/projects/pipelines/pipelines_spec.rb
+++ b/spec/features/projects/pipelines/pipelines_spec.rb
@@ -271,12 +271,9 @@ describe "Pipelines", feature: true, js: true do
context 'with gitlab-ci.yml' do
before { stub_ci_pipeline_to_return_yaml_file }
- it do
- expect{
- click_on 'Create pipeline'
- }.to change{
- Ci::Pipeline.count
- }.by(1)
+ it 'creates a new pipeline' do
+ expect { click_on 'Create pipeline' }
+ .to change { Ci::Pipeline.count }.by(1)
end
end