Skip to content

Commit

Permalink
(CONT-1026) Rubocop Fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
david22swan committed Nov 30, 2023
1 parent a934e43 commit 82717f4
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 5 deletions.
2 changes: 1 addition & 1 deletion lib/pdk/module/build.rb
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
require 'pdk'
require_relative './pre_build'
require_relative 'pre_build'

module PDK
module Module
Expand Down
2 changes: 1 addition & 1 deletion lib/pdk/module/release.rb
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
require 'pdk'
require 'uri'
require_relative './pre_build'
require_relative 'pre_build'

module PDK
module Module
Expand Down
8 changes: 5 additions & 3 deletions spec/unit/pdk/module/pre_build_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,11 @@
let(:report) { instance_double(PDK::Report, write_text: nil) }

before do
allow(PDK::CLI::Util).to receive(:validate_puppet_version_opts).and_return(nil)
allow(PDK::CLI::Util).to receive(:module_version_check).and_return(nil)
allow(PDK::CLI::Util).to receive(:puppet_from_opts_or_env).and_return(gemset: {}, ruby_version: '1.2.3')
allow(PDK::CLI::Util).to receive_messages(
validate_puppet_version_opts: nil,
module_version_check: nil,
puppet_from_opts_or_env: { gemset: {}, ruby_version: '1.2.3' }
)
allow(PDK::Util::PuppetVersion).to receive(:fetch_puppet_dev).and_return(nil)
allow(PDK::Util::RubyVersion).to receive(:use).and_return(nil)
allow(PDK::Util::Bundler).to receive(:ensure_bundle!).and_return(nil)
Expand Down

0 comments on commit 82717f4

Please sign in to comment.