Skip to content
This repository has been archived by the owner on Jul 26, 2024. It is now read-only.

Commit

Permalink
Rubocop autofixes
Browse files Browse the repository at this point in the history
  • Loading branch information
ekohl committed Dec 22, 2022
1 parent d00cc98 commit f76d6c6
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 19 deletions.
32 changes: 16 additions & 16 deletions spec/acceptance/class_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -21,22 +21,22 @@ class { 'jenkins_job_builder': }

# TODO: test ini file

yaml_content = <<-'YAML'
---
- job:
description: "This a test job"
name: "test"
project-type: "freestyle"
scm:
- git:
branches:
- "*/master"
builders:
- shell: "#!/bin/bash -l\necho \"test\"\n"
triggers:
- pollscm: "*/1 * * * *"
url: "git@github.com:opentable/puppet-jenkins_job_builder"
YAML
yaml_content = <<~'YAML'
---
- job:
description: "This a test job"
name: "test"
project-type: "freestyle"
scm:
- git:
branches:
- "*/master"
builders:
- shell: "#!/bin/bash -l\necho \"test\"\n"
triggers:
- pollscm: "*/1 * * * *"
url: "git@github.com:opentable/puppet-jenkins_job_builder"
YAML

describe file('/tmp/jenkins-test.yaml') do
it { is_expected.to be_file }
Expand Down
6 changes: 3 additions & 3 deletions spec/classes/jenkins_job_builder_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -11,13 +11,13 @@
let(:expected_packages) do
case os_facts[:os]['family']
when 'Debian'
['python', 'python-pip', 'python-yaml']
%w[python python-pip python-yaml]
when 'RedHat'
case os_facts[:os]['release']['major']
when '6'
['python', 'python-pip', 'PyYAML', 'python-argparse']
%w[python python-pip PyYAML python-argparse]
when '7'
['python', 'python2-pip', 'PyYAML']
%w[python python2-pip PyYAML]
else
[]
end
Expand Down

0 comments on commit f76d6c6

Please sign in to comment.