Skip to content

Commit

Permalink
Merge pull request #354 from puppetlabs/CAT-1382-Fix-CI-Pipeline
Browse files Browse the repository at this point in the history
[CAT-1382] : Fixing CI failure due to rubocop
  • Loading branch information
Ramesh7 authored Sep 11, 2023
2 parents 412af7c + 68bc480 commit f3f50ca
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
7 changes: 6 additions & 1 deletion .rubocop_todo.yml
Original file line number Diff line number Diff line change
Expand Up @@ -88,10 +88,15 @@ RSpec/ExpectInHook:
- 'spec/unit/provider/reboot/linux_spec.rb'
- 'spec/unit/provider/reboot/posix_spec.rb'

# Offense count: 1
RSpec/SpecFilePathFormat:
Exclude:
- 'spec/unit/task/init_spec.rb'

# Offense count: 1
# Configuration parameters: Include, CustomTransform, IgnoreMethods, SpecSuffixOnly.
# Include: **/*_spec*rb*, **/spec/**/*
RSpec/FilePath:
RSpec/SpecFilePathSuffix:
Exclude:
- 'spec/acceptance/reboot_message.spec.rb'

Expand Down
2 changes: 1 addition & 1 deletion spec/unit/task/init_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
# require_relative '../../../tasks/init'
require "#{File.dirname(__FILE__)}/../../../tasks/init.rb"

describe Reboot::Task do # rubocop:disable RSpec/FilePath
describe Reboot::Task do

Check failure on line 7 in spec/unit/task/init_spec.rb

View workflow job for this annotation

GitHub Actions / Spec / Spec tests (Puppet: ~> 8.0, Ruby Ver: 3.2)

RSpec/FilePath: Spec path should end with `reboot/task*_spec.rb`. (https://www.rubydoc.info/gems/rubocop-rspec/RuboCop/Cop/RSpec/FilePath)

Check failure on line 7 in spec/unit/task/init_spec.rb

View workflow job for this annotation

GitHub Actions / Spec / Spec tests (Puppet: ~> 7.24, Ruby Ver: 2.7)

RSpec/FilePath: Spec path should end with `reboot/task*_spec.rb`. (https://www.rubydoc.info/gems/rubocop-rspec/RuboCop/Cop/RSpec/FilePath)

Check failure on line 7 in spec/unit/task/init_spec.rb

View workflow job for this annotation

GitHub Actions / Spec / Spec tests (Puppet: ~> 8.0, Ruby Ver: 3.2)

RSpec/FilePath: Spec path should end with `reboot/task*_spec.rb`. (https://www.rubydoc.info/gems/rubocop-rspec/RuboCop/Cop/RSpec/FilePath)

Check failure on line 7 in spec/unit/task/init_spec.rb

View workflow job for this annotation

GitHub Actions / Spec / Spec tests (Puppet: ~> 7.24, Ruby Ver: 2.7)

RSpec/FilePath: Spec path should end with `reboot/task*_spec.rb`. (https://www.rubydoc.info/gems/rubocop-rspec/RuboCop/Cop/RSpec/FilePath)

Check failure on line 7 in spec/unit/task/init_spec.rb

View workflow job for this annotation

GitHub Actions / Spec / Spec tests (Puppet: ~> 8.0, Ruby Ver: 3.2)

RSpec/FilePath: Spec path should end with `reboot/task*_spec.rb`. (https://www.rubydoc.info/gems/rubocop-rspec/RuboCop/Cop/RSpec/FilePath)

Check failure on line 7 in spec/unit/task/init_spec.rb

View workflow job for this annotation

GitHub Actions / Spec / Spec tests (Puppet: ~> 7.24, Ruby Ver: 2.7)

RSpec/FilePath: Spec path should end with `reboot/task*_spec.rb`. (https://www.rubydoc.info/gems/rubocop-rspec/RuboCop/Cop/RSpec/FilePath)
context 'on Windows' do
before(:each) do
allow(Facter).to receive(:value).with(:kernel).and_return('windows')
Expand Down

0 comments on commit f3f50ca

Please sign in to comment.